Chartaccount_Controller
in package
Chartaccount_Controller.
Tags
Table of Contents
Properties
- $_Admin_Form_Controller : mixed
Methods
- getCode() : string
- Get code
- getDocument() : object|null
- Get document
- getDocumentId() : int
- Get uniq document ID
- getDocumentModel() : mixed
- Get Model Name By Type Id
- getDocumentType() : int|null
- Get document type
- getEntity() : object
- Get entity
- getOptions() : object
- Get options
- getSubcountList() : array<string|int, mixed>
- Get subcounts list
- getSubcounts() : array<string|int, mixed>
- Undocumented function
- setAdminFormController() : self
- Set admin form controller
- showSubcounts() : void
- Show subcounts
- _getCorrectEntries() : array<string|int, mixed>
- Get correct entries
- _getSubcountValue() : mixed
Properties
$_Admin_Form_Controller
protected
static mixed
$_Admin_Form_Controller
= \NULL
Methods
getCode()
Get code
public
static getCode(Chartaccount_Model $oChartaccount) : string
Parameters
- $oChartaccount : Chartaccount_Model
Return values
stringgetDocument()
Get document
public
static getDocument(mixed $document_id) : object|null
Parameters
- $document_id : mixed
Return values
object|nullgetDocumentId()
Get uniq document ID
public
static getDocumentId(int $id, int $type) : int
Parameters
- $id : int
-
document ID
- $type : int
-
document type
Return values
intgetDocumentModel()
Get Model Name By Type Id
public
static getDocumentModel(int $type) : mixed
Parameters
- $type : int
getDocumentType()
Get document type
public
static getDocumentType(mixed $document_id) : int|null
Parameters
- $document_id : mixed
Return values
int|nullgetEntity()
Get entity
public
static getEntity(object $oObject, int $type) : object
Parameters
- $oObject : object
- $type : int
Return values
objectgetOptions()
Get options
public
static getOptions([array<string|int, mixed> $aParams = array() ][, bool $ajax = FALSE ]) : object
Parameters
- $aParams : array<string|int, mixed> = array()
- $ajax : bool = FALSE
Return values
objectgetSubcountList()
Get subcounts list
public
static getSubcountList() : array<string|int, mixed>
Return values
array<string|int, mixed>getSubcounts()
Undocumented function
public
static getSubcounts(Chartaccount_Entry_Model|Chartaccount_Operation_Item_Model $oEntry) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed>setAdminFormController()
Set admin form controller
public
static setAdminFormController(object $oAdmin_Form_Controller) : self
Parameters
- $oAdmin_Form_Controller : object
Return values
selfshowSubcounts()
Show subcounts
public
static showSubcounts(array<string|int, mixed> $aValues, int $chartaccount_id, object $oParentObject, object $oAdmin_Form_Controller[, array<string|int, mixed> $aParams = array() ][, string $prefix = '' ]) : void
Parameters
- $aValues : array<string|int, mixed>
- $chartaccount_id : int
- $oParentObject : object
- $oAdmin_Form_Controller : object
- $aParams : array<string|int, mixed> = array()
- $prefix : string = ''
_getCorrectEntries()
Get correct entries
protected
static _getCorrectEntries(int $chartaccount_id) : array<string|int, mixed>
Parameters
- $chartaccount_id : int
Return values
array<string|int, mixed>_getSubcountValue()
protected
static _getSubcountValue(mixed $type, mixed $value) : mixed
Parameters
- $type : mixed
- $value : mixed