PHP Class skeeks\cms\helpers\TreeOptions

Inheritance: extends skeeks\cms\models\Tree
Afficher le fichier Open project: skeeks-cms/cms Class Usage Examples

Méthodes publiques

Свойство Type Description
$repeat символ будет добавляться перед називанием раздела.

Protected Properties

Свойство Type Description
$_tmpResult

Méthodes publiques

Méthode Description
filter ( $condition ) Фильтрует дерево по заданному условию
getAllMultiOptions ( skeeks\cms\models\CmsTree $parentTree = null ) : array | mixed
getMultiOptions ( $includeSelf = true ) : array Строит массив для селекта

Private Methods

Méthode Description
_buildTreeArrayRecursive ( Tree $model, array $filter ) : array Строит рекурсивно массив дерева
_getTreeNodesIds ( $nodes ) : array Возвращает массив id элементов дерева

Method Details

filter() public méthode

Фильтрует дерево по заданному условию
public filter ( $condition )
$condition

getAllMultiOptions() public static méthode

public static getAllMultiOptions ( skeeks\cms\models\CmsTree $parentTree = null ) : array | mixed
$parentTree skeeks\cms\models\CmsTree
Résultat array | mixed

getMultiOptions() public méthode

Строит массив для селекта
public getMultiOptions ( $includeSelf = true ) : array
Résultat array

Property Details

$_tmpResult protected_oe property

protected $_tmpResult

$repeat public_oe property

символ будет добавляться перед називанием раздела.
public $repeat