|
eZ Publish
[4.2]
|
Public Member Functions | |
| eZContentStructureTreeOperator ($name= 'content_structure_tree') | |
| modify ($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters) | |
| namedParameterList () | |
| operatorList () | |
Static Public Member Functions | |
| contentStructureTree ($rootNodeID, $classFilter, $maxDepth, $maxNodes, $sortArray, $fetchHidden, $unfoldNodeID) | |
| subTree ($params, $nodeID, $countChildren=false) | |
Public Attributes | |
| $Operators | |
Static Private Member Functions | |
| children (&$contentTree, &$classFilter, &$depthLeft, &$nodesLeft, &$sortBy, $fetchHidden, $unfoldNodeID) | |
| createContentStructureNode (&$treeNode, $childrenCount) | |
| initContentStructureTree ($rootNodeID, $fetchHidden, $classFilter=false) | |
| oneLevelChildren (&$contentTree, &$classFilter, &$sortBy, &$nodesLeft, $fetchHidden) | |
Definition at line 39 of file ezcontentstructuretreeoperator.php.
| eZContentStructureTreeOperator::children | ( | &$ | contentTree, |
| &$ | classFilter, | ||
| &$ | depthLeft, | ||
| &$ | nodesLeft, | ||
| &$ | sortBy, | ||
| $ | fetchHidden, | ||
| $ | unfoldNodeID | ||
| ) | [static, private] |
Creates a tree of content by recursive calls to children and oneLevelChildren. $contentTree is a tree at previous call to children. $classFilter is an array of class ids. Only nodes of these classes will be fetched from db. $depthLeft determines a depth of recursion. $nodesLeft determines a number of nodes which are left to fetch. $sortBy is a method of sorting one-level children. $fetchHidden - should or not fetch unpublished/hidden nodes
Definition at line 342 of file ezcontentstructuretreeoperator.php.
Referenced by contentStructureTree().
| eZContentStructureTreeOperator::contentStructureTree | ( | $ | rootNodeID, |
| $ | classFilter, | ||
| $ | maxDepth, | ||
| $ | maxNodes, | ||
| $ | sortArray, | ||
| $ | fetchHidden, | ||
| $ | unfoldNodeID | ||
| ) | [static] |
a tree of content structure: tree = array( tree_node, children ), where 'tree_node' is array( 'node' => info about node, 'object' => info about object );
'children' is array( tree_node, children );
Definition at line 241 of file ezcontentstructuretreeoperator.php.
Referenced by modify().
| eZContentStructureTreeOperator::createContentStructureNode | ( | &$ | treeNode, |
| $ | childrenCount | ||
| ) | [static, private] |
Creates a node of content structure tree and sets up attributes of node using $treeNode to retrieve necessary data.
Definition at line 379 of file ezcontentstructuretreeoperator.php.
Referenced by oneLevelChildren().
| eZContentStructureTreeOperator::eZContentStructureTreeOperator | ( | $ | name = 'content_structure_tree' | ) |
Definition at line 41 of file ezcontentstructuretreeoperator.php.
| eZContentStructureTreeOperator::initContentStructureTree | ( | $ | rootNodeID, |
| $ | fetchHidden, | ||
| $ | classFilter = false |
||
| ) | [static, private] |
Initializes a tree: creates root node.
Definition at line 406 of file ezcontentstructuretreeoperator.php.
Referenced by contentStructureTree().
| eZContentStructureTreeOperator::modify | ( | $ | tpl, |
| $ | operatorName, | ||
| $ | operatorParameters, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace, | ||
| &$ | operatorValue, | ||
| $ | namedParameters | ||
| ) |
Definition at line 82 of file ezcontentstructuretreeoperator.php.
| eZContentStructureTreeOperator::namedParameterList | ( | ) |
See eZTemplateOperator::namedParameterList()
Definition at line 57 of file ezcontentstructuretreeoperator.php.
| eZContentStructureTreeOperator::oneLevelChildren | ( | &$ | contentTree, |
| &$ | classFilter, | ||
| &$ | sortBy, | ||
| &$ | nodesLeft, | ||
| $ | fetchHidden | ||
| ) | [static, private] |
Parameters the same as in children. one-level children.
Definition at line 266 of file ezcontentstructuretreeoperator.php.
Referenced by children().
| eZContentStructureTreeOperator::operatorList | ( | ) |
Returns the operators in this class.
Definition at line 49 of file ezcontentstructuretreeoperator.php.
| eZContentStructureTreeOperator::subTree | ( | $ | params, |
| $ | nodeID, | ||
| $ | countChildren = false |
||
| ) | [static] |
Returns one-level children of node $nodeID if $countChildren = false, othewise returns count of one-level children of node nodeID.
Definition at line 125 of file ezcontentstructuretreeoperator.php.
Referenced by oneLevelChildren().
| eZContentStructureTreeOperator::$Operators |
Definition at line 459 of file ezcontentstructuretreeoperator.php.