Dms_Document_Type_Controller
in package
Dms_Document_Type_Controller
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_aTypes : mixed
- Types
- $_aTypeTree : mixed
- Types tree
Methods
- fillTypes() : array<string|int, mixed>
- Build types array
- getAllSubtypes() : array<string|int, mixed>
- Get all subtypes
- getByParentId() : array<string|int, mixed>
- Get by parent id
- instance() : object
- Register an existing instance as a singleton.
- _fillAllTypes() : self
- Fill all types
- _fillTypes() : array<string|int, mixed>
- Fill types
Properties
$instance
The singleton instances.
public
static mixed
$instance
= \NULL
$_aTypes
Types
protected
mixed
$_aTypes
= \NULL
$_aTypeTree
Types tree
protected
mixed
$_aTypeTree
= \NULL
Methods
fillTypes()
Build types array
public
fillTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getAllSubtypes()
Get all subtypes
public
getAllSubtypes(int $dms_class_id, int $parent_id) : array<string|int, mixed>
Parameters
- $dms_class_id : int
- $parent_id : int
Return values
array<string|int, mixed>getByParentId()
Get by parent id
public
getByParentId(int $dms_class_id, int $parent_id) : array<string|int, mixed>
Parameters
- $dms_class_id : int
- $parent_id : int
Return values
array<string|int, mixed>instance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
object_fillAllTypes()
Fill all types
protected
_fillAllTypes() : self
Return values
self_fillTypes()
Fill types
protected
_fillTypes(Dms_Class_Model $oDms_Class[, int $iParentId = 0 ][, int $iLevel = 0 ]) : array<string|int, mixed>
Parameters
- $oDms_Class : Dms_Class_Model
- $iParentId : int = 0
- $iLevel : int = 0