Tree
in package
Tree class.
Table of Contents
- deleteForModule() : mixed
- Delete trees of the module.
- getParentIdx() : flase|string
- Get parent index.
- getPicklistValue() : array<string|int, string>
- Get picklist values.
- getPicklistValueImage() : array<string|int, string>
- Get picklist value with graphics.
- getTreeValues() : array<string|int, mixed>
- Get tree values for jstree.
- getValueByTreeId() : array<string|int, mixed>
- Get tree values by tree ID.
- getValuesById() : array<string|int, array<string|int, mixed>>
- Get tree values by ID.
Methods
deleteForModule()
Delete trees of the module.
public
static deleteForModule(int $moduleId) : mixed
Parameters
- $moduleId : int
Return values
mixed —getParentIdx()
Get parent index.
public
static getParentIdx(array<string|int, mixed> $itemTree) : flase|string
Parameters
- $itemTree : array<string|int, mixed>
Return values
flase|string —getPicklistValue()
Get picklist values.
public
static getPicklistValue(int $templateId, string $moduleName) : array<string|int, string>
Parameters
- $templateId : int
- $moduleName : string
Return values
array<string|int, string> —getPicklistValueImage()
Get picklist value with graphics.
public
static getPicklistValueImage(int $templateId, string $moduleName, string $treeId) : array<string|int, string>
Parameters
- $templateId : int
- $moduleName : string
- $treeId : string
Return values
array<string|int, string> —getTreeValues()
Get tree values for jstree.
public
static getTreeValues(int $templateId, string $moduleName) : array<string|int, mixed>
Parameters
- $templateId : int
- $moduleName : string
Return values
array<string|int, mixed> —getValueByTreeId()
Get tree values by tree ID.
public
static getValueByTreeId(int $templateId, string $tree) : array<string|int, mixed>
Parameters
- $templateId : int
- $tree : string
Return values
array<string|int, mixed> —getValuesById()
Get tree values by ID.
public
static getValuesById(int $templateId) : array<string|int, array<string|int, mixed>>
Parameters
- $templateId : int