|
eZ Publish
[trunk]
|
The class eZContentObjectTreeNode does. More...
Inheritance diagram for eZContentObjectTreeNode:
Collaboration diagram for eZContentObjectTreeNode:Public Member Functions | |
| addChild ($contentobjectID, $asObject=false, $contentObjectVersion=false) | |
| adjustPathElement ($element, $useParentFromNodeObject=false) | |
| availableClassesJsArray () | |
| canAddLocation () | |
| canCreate () | |
| canCreateClassList ($asObject=false, $includeFilter=true, $groupList=false, $fetchID=false) | |
| canEdit () | |
| canHide () | |
| canMove () | |
| canMoveFrom () | |
| canMoveTo ($classID=false) | |
| canPdf () | |
| canRead () | |
| canRemove () | |
| canRemoveLocation () | |
| canSwap () | |
| canViewEmbed () | |
| checkAccess ($functionName, $originalClassID=false, $parentClassID=false, $returnAccessList=false, $language=false) | |
| checkPath ($path) | |
| children () | |
| childrenByName ($name) | |
| childrenCount ($checkPolicies=true) | |
| classIdentifier () | |
| classIsContainer () | |
| classListFromPolicy ($policy, $allowedLanguageCodes=false) | |
| className () | |
| contentObjectVersionObject ($asObject=true) | |
| createObject ($contentClassID, $parentNodeID=2) | |
| creator () | |
| currentLanguage () | |
| dataMap () | |
| eZContentObjectTreeNode ($row=array()) | |
| fetchByCRC ($pathStr) | |
| fetchParent () | |
| fetchPath () | |
| getName ($language=false) | |
| hasContentObject () | |
| hiddenInvisibleString () | |
| hiddenStatusString () | |
| isMain () | |
| move ($newParentNodeID, $nodeID=0) | |
| object () | |
| pathArray () | |
| pathWithNames ($regenerateCurrent=false) | |
| remoteID () | |
| removeNodeFromTree ($moveToTrash=true) | |
| removeThis () | |
| serialize ($options, $contentNodeIDArray, $topNodeIDArray) | |
| setContentObject ($object) | |
| setCurrentLanguage ($languageCode) | |
| setName ($name) | |
| sortArray () | |
| store ($fieldFilters=null) | |
| subTree ($params=false) | |
| subTreeCount ($params=array()) | |
| subtreeSoleNodeCount ($params=array()) | |
| updateAndStoreModified () | |
| updateSubTreePath ($updateParent=true, $nodeMove=false) | |
| updateURLAlias () | |
| url () | |
| urlAlias () | |
| viewCount () | |
Static Public Member Functions | |
| static | addChildTo ($contentobjectID, $nodeID, $asObject=false, $contentObjectVersion=false) |
| static | assignSectionToSubTree ($nodeID, $sectionID, $oldSectionID=false) |
| static | availableClassListJsArray ($parameters=false) |
| static | calendar ($params=false, $nodeID=0) |
| static | classAttributeIDByIdentifier ($identifier) |
| static | classIDByIdentifier ($identifier) |
| static | clearViewCacheForSubtree (eZContentObjectTreeNode $node, $clearForRootNode=true) |
| static | create ($parentNodeID=null, $contentObjectID=null, $contentObjectVersion=0, $sortField=0, $sortOrder=true) |
| static | createAttributeFilterSQLStrings (&$attributeFilter, &$sortingInfo=array( 'sortCount'=> 0, 'attributeJoinCount'=> 0)) |
| static | createClassFilteringSQLString ($classFilterType, &$classFilterArray) |
| static | createExtendedAttributeFilterSQLStrings (&$extendedAttributeFilter) |
| static | createGroupBySQLStrings (&$outGroupBySelectText, &$outGroupByText, $groupBy) |
| static | createMainNodeConditionSQLString ($mainNodeOnly) |
| static | createNodesConditionSQLStringFromPath ($nodePath, $includingLastNodeInThePath, $limit=false) |
| static | createNotEqParentSQLString ($nodeID, $depth=false, $depthOperator= 'le') |
| static | createObjectNameFilterConditionSQLString ($filter) |
| static | createPathConditionAndNotEqParentSQLStrings (&$outPathConditionStr, &$outNotEqParentStr, $nodeID, $depth=false, $depthOperator= 'le') |
| static | createPathConditionSQLString ($nodePath, $nodeDepth, $depth=false, $depthOperator= 'le') |
| static | createPermissionCheckingSQL ($limitationList, $treeTableName= 'ezcontentobject_tree', $tableAliasName= 'ezcontentobject_tree') |
| static | createPermissionCheckingSQLString ($limitationList) |
| static | createShowInvisibleSQLString ($useSettings, $fetchHidden=true) |
| static | createSortingSQLStrings ($sortList, $treeTableName= 'ezcontentobject_tree', $allowCustomColumns=false) |
| static | createVersionNameJoinsSQLString ($useVersionName, $includeAnd=true, $onlyTranslated=false, $lang=false, $treeTableName= 'ezcontentobject_tree') |
| static | createVersionNameTablesSQLString ($useVersionName) |
| static | createVersionNameTargetsSQLString ($useVersionName) |
| static | dataTypeByClassAttributeID ($classAttributeID) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | deleteNodeWhereParent ($node, $id) |
| static | fetch ($nodeID=false, $lang=false, $asObject=true, $conditions=false) |
| Fetches a node by ID. | |
| static | fetchAliasesFromNodeList ($nodeList) |
| Fetches path_identification_string for a list of nodes. | |
| static | fetchByContentObjectID ($contentObjectID, $asObject=true, $contentObjectVersion=false) |
| static | fetchByPath ($pathString, $asObject=true) |
| static | fetchByRemoteID ($remoteID, $asObject=true) |
| static | fetchByURLPath ($pathString, $asObject=true) |
| static | fetchClassIdentifierListByPathString ($nodePath, $withLastNode, $limit=false) |
| static | fetchList ($asObject=true, $offset=false, $limit=false) |
| static | fetchListCount () |
| static | fetchNode ($contentObjectID, $parentNodeID) |
| static | fetchNodesByPathString ($nodePath, $withLastNode=false, $asObjects=true, $limit=false) |
| static | findMainNode ($objectID, $asObject=false) |
| Get Main Node Id ( or Main Node if $asObject = true ) by Content Object Id. | |
| static | findMainNodeArray ($objectIDArray, $asObject=true) |
| Fetches the main nodes for an array of object id's. | |
| static | findNode ($parentNode, $id, $asObject=false, $remoteID=false) |
| static | getClassesJsArray ($node=false, $includeFilter=true, $groupList=false, $fetchID=false, $classes=false) |
| static | getLimitationList (&$limitation) |
| static | getParentNodeId ($nodeID) |
| static | getParentNodeIdListByContentObjectID ($objectIDs, $groupByObjectId=false, $onlyMainNode=false) |
| Get parent node id's by content object id's. | |
| static | hideSubTree (eZContentObjectTreeNode $node, $modifyRootNode=true) |
| static | makeObjectsArray ($array, $with_contentobject=true) |
| static | parentDepthLimitationList () |
| static | removeNode ($nodeID=0) |
| static | removeSubtrees ($deleteIDArray, $moveToTrash=true, $infoOnly=false) |
| static | setUseCurrentUserDraft ($enable) |
| Enables / disables Use current user draft mode for data map. | |
| static | setVersionByObjectID ($objectID, $newVersion) |
| static | showInvisibleNodes () |
| static | sortArrayBySortFieldAndSortOrder ($sortField, $sortOrder) |
| static | sortFieldID ($sortFieldName) |
| static | sortFieldName ($sortFieldID) |
| static | sortKeyByClassAttributeID ($classAttributeID) |
| static | subTreeByNodeID ($params=false, $nodeID=0) |
| static | subTreeCountByNodeID ($params=array(), $nodeID) |
| static | subTreeGroupByDateField ($field, $type) |
| static | subTreeMultiPaths ($nodesParams, $listParams=NULL) |
| static | subtreeRemovalInformation ($deleteIDArray) |
| static | unhideSubTree (eZContentObjectTreeNode $node, $modifyRootNode=true) |
| static | unserialize ($contentNodeDOMNode, $contentObject, $version, $isMain, &$nodeList, &$options, $handlerType= 'ezcontentobject') |
| static | updateMainNodeID ($mainNodeID, $objectID, $version=false, $parentMainNodeID, $updateSection=true) |
| static | updateNodeVisibility ($node, $parentNode, $recursive=true) |
Public Attributes | |
| $ClassIdentifier = null | |
| Contains the cached value of the class identifier. | |
| $ClassName = null | |
| $CurrentLanguage = false | |
| The current language for the node. | |
| $Name | |
| Name of the node. | |
| const | SORT_FIELD_CLASS_IDENTIFIER = 6 |
| const | SORT_FIELD_CLASS_NAME = 7 |
| const | SORT_FIELD_CONTENTOBJECT_ID = 12 |
| const | SORT_FIELD_DEPTH = 5 |
| const | SORT_FIELD_MODIFIED = 3 |
| const | SORT_FIELD_MODIFIED_SUBNODE = 10 |
| const | SORT_FIELD_NAME = 9 |
| const | SORT_FIELD_NODE_ID = 11 |
| const | SORT_FIELD_PATH = 1 |
| const | SORT_FIELD_PRIORITY = 8 |
| const | SORT_FIELD_PUBLISHED = 2 |
| const | SORT_FIELD_SECTION = 4 |
| const | SORT_ORDER_ASC = 1 |
| const | SORT_ORDER_DESC = 0 |
Protected Member Functions | |
| hasCurrentSubtreeLimitation (array $policy) | |
| Checks if provided policy array has a limitation on current subtree. | |
Protected Attributes | |
| $ClassIsContainer = null | |
Static Protected Attributes | |
| static | $useCurrentUserDraft = false |
Private Member Functions | |
| updatePathIdentificationString ($pathIdentificationName) | |
Static Private Member Functions | |
| static | reverseRelatedCount ($nodeIDArray) |
The class eZContentObjectTreeNode does.
Some algorithms
----------
1. Adding new Node
Enter 1 - parent_node
2 - contentobject_id, ( that is like a node value )
(a) - get path_string, depth for parent node to built path_string and to count depth for new one
(c) - calculating attributes for new node and inserting it
Returns node_id for added node
2. Deleting node ( or subtree )
Enter - node_id
3. Move subtree in tree
Enter node_id,new_parent_id
4. fetching subtree
Definition at line 41 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::addChild | ( | $ | contentobjectID, |
| $ | asObject = false, |
||
| $ | contentObjectVersion = false |
||
| ) |
Add a child for this node to the object tree.
| $contentobjectID | The ID of the contentobject the child-node should point to. |
| $asObject | If true it will return the new child-node as an object, if not it returns the ID. |
| $contentObjectVersion | The version to use on the newly created child-node, if false it uses the current_version of the specified object. |
Definition at line 3283 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::addChildTo | ( | $ | contentobjectID, |
| $ | nodeID, | ||
| $ | asObject = false, |
||
| $ | contentObjectVersion = false |
||
| ) | [static] |
Add a child to the object tree.
| $contentobjectID | The ID of the contentobject the child-node should point to. |
| $nodeID | The ID of the parent-node to add child-node to. |
| $asObject | If true it will return the new child-node as an object, if not it returns the ID. |
| $contentObjectVersion | The version to use on the newly created child-node, if false it uses the current_version of the specified object. |
Definition at line 3298 of file ezcontentobjecttreenode.php.
Referenced by addChild(), eZContentObject\addLocation(), and createObject().
| eZContentObjectTreeNode::adjustPathElement | ( | $ | element, |
| $ | useParentFromNodeObject = false |
||
| ) |
Checks the path element $element against reserved words and existing elements. If the path element is already used, it will append a number and try again.
The adjusted path element is returned.
| $element | The desired url element name |
| $useParentFromNodeObject | Use the parent from node object as a base for checking name collisions. This is needed when moving nodes, and the url entries are not updated yet. |
echo $node->adjustPathElement( 'Content' ); // outputs Content1
Definition at line 3451 of file ezcontentobjecttreenode.php.
Referenced by checkPath(), and updateSubTreePath().
| static eZContentObjectTreeNode::assignSectionToSubTree | ( | $ | nodeID, |
| $ | sectionID, | ||
| $ | oldSectionID = false |
||
| ) | [static] |
Will assign a section to the current node and all child objects. Only main node assignments will be updated.
Definition at line 2754 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectTreeNodeOperations\move(), eZSiteInstaller\setSection(), eZContentOperationCollection\swapNode(), eZSiteInstaller\swapNodes(), updateMainNodeID(), eZContentOperationCollection\updateSection(), and eZContentOperationCollection\updateSectionID().
Definition at line 6094 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::availableClassListJsArray | ( | $ | parameters = false | ) | [static] |
Definition at line 6103 of file ezcontentobjecttreenode.php.
Referenced by availableClassesJsArray(), eZContentStructureTreeOperator\createContentStructureNode(), and eZContentStructureTreeOperator\initContentStructureTree().
| static eZContentObjectTreeNode::calendar | ( | $ | params = false, |
| $ | nodeID = 0 |
||
| ) | [static] |
Definition at line 2465 of file ezcontentobjecttreenode.php.
true if current user can add object locations to current node. Definition at line 462 of file ezcontentobjecttreenode.php.
true if the current user can create a new node as child of this node. Definition at line 385 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::canCreateClassList | ( | $ | asObject = false, |
| $ | includeFilter = true, |
||
| $ | groupList = false, |
||
| $ | fetchID = false |
||
| ) |
Finds all classes that the current user can create objects from and returns. It is also possible to filter the list event more with $includeFilter and $groupList.
| $asObject | If true then it return eZContentClass objects, if not it will be an associative array with name and id keys. |
| $includeFilter | If true then it will include only from class groups defined in $groupList, if not it will exclude those groups. |
| $groupList | An array with class group IDs that should be used in filtering, use false if you do not wish to filter at all. |
| $fetchID | A unique name for the current fetch, this must be supplied when filtering is used if you want caching to work. |
Definition at line 5034 of file ezcontentobjecttreenode.php.
true if the node can be edited by the current user. Definition at line 347 of file ezcontentobjecttreenode.php.
true if the node can be hidden by the current user. Definition at line 372 of file ezcontentobjecttreenode.php.
Check if the node can be moved. (actually checks 'edit' and 'remove' permissions)
true if the node can be moved by the current user. Definition at line 413 of file ezcontentobjecttreenode.php.
Check if the node can be moved. (actually checks 'edit' and 'remove' permissions)
true if the node can be moved by the current user. Definition at line 423 of file ezcontentobjecttreenode.php.
Referenced by canMove().
| eZContentObjectTreeNode::canMoveTo | ( | $ | classID = false | ) |
true if a node of class $classID can be moved to the current node by the current user. Definition at line 436 of file ezcontentobjecttreenode.php.
true if the current user can create a pdf of this content object. Definition at line 320 of file ezcontentobjecttreenode.php.
true if the node can be read by the current user. Definition at line 308 of file ezcontentobjecttreenode.php.
Referenced by eZNodeviewfunctions\contentViewGenerate().
true if the node can be removed by the current user. Definition at line 398 of file ezcontentobjecttreenode.php.
true if current user can add object locations to current node. Definition at line 474 of file ezcontentobjecttreenode.php.
true if a node can be swaped by the current user. Definition at line 449 of file ezcontentobjecttreenode.php.
true if the node can be viewed as embeded object by the current user. Definition at line 334 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::checkAccess | ( | $ | functionName, |
| $ | originalClassID = false, |
||
| $ | parentClassID = false, |
||
| $ | returnAccessList = false, |
||
| $ | language = false |
||
| ) |
Definition at line 4318 of file ezcontentobjecttreenode.php.
Referenced by canAddLocation(), canCreate(), canEdit(), canHide(), canMoveFrom(), canMoveTo(), canPdf(), canRead(), canRemove(), canRemoveLocation(), canSwap(), canViewEmbed(), and eZNodeviewfunctions\contentViewGenerate().
| eZContentObjectTreeNode::checkPath | ( | $ | path | ) |
Check if a node with the same name already exists. If so create a $name + __x value.
Definition at line 3427 of file ezcontentobjecttreenode.php.
Referenced by pathWithNames().
Returns the first level children in sorted order.
Definition at line 2621 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::childrenByName | ( | $ | name | ) |
Definition at line 2576 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::childrenCount | ( | $ | checkPolicies = true | ) |
Returns the number of children for the current node. $checkPolicies If true it will only include nodes which can be read using the current policies, if false all nodes are included in count.
Definition at line 2633 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::classAttributeIDByIdentifier | ( | $ | identifier | ) | [static] |
Definition at line 289 of file ezcontentobjecttreenode.php.
Referenced by eZSearchEngine\buildSortSQL(), createAttributeFilterSQLStrings(), createSortingSQLStrings(), eZContentFunctionCollection\fetchRelatedObjects(), eZContentFunctionCollection\fetchRelatedObjectsCount(), eZContentFunctionCollection\fetchReverseRelatedObjects(), and eZContentFunctionCollection\fetchReverseRelatedObjectsCount().
| static eZContentObjectTreeNode::classIDByIdentifier | ( | $ | identifier | ) | [static] |
Definition at line 299 of file ezcontentobjecttreenode.php.
Referenced by createClassFilteringSQLString(), eZContentOperationCollection\createFeedForNode(), eZRSSEditFunction\setItemDefaults(), and subTreeCountByNodeID().
Definition at line 5748 of file ezcontentobjecttreenode.php.
Definition at line 5777 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::classListFromPolicy | ( | $ | policy, |
| $ | allowedLanguageCodes = false |
||
| ) |
Definition at line 4783 of file ezcontentobjecttreenode.php.
Referenced by canCreateClassList().
Definition at line 5762 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::clearViewCacheForSubtree | ( | eZContentObjectTreeNode $ | node, |
| $ | clearForRootNode = true |
||
| ) | [static] |
static
Definition at line 6010 of file ezcontentobjecttreenode.php.
Referenced by hideSubTree(), and unhideSubTree().
| eZContentObjectTreeNode::contentObjectVersionObject | ( | $ | asObject = true | ) |
Definition at line 5687 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::create | ( | $ | parentNodeID = null, |
| $ | contentObjectID = null, |
||
| $ | contentObjectVersion = 0, |
||
| $ | sortField = 0, |
||
| $ | sortOrder = true |
||
| ) | [static] |
Creates a new tree node and returns it.
| $parentNodeID | The ID of the parent or null if the node is not known yet. |
| $contentObjectID | The ID of the object it points to or null if it is not known yet. |
| $contentObjectVersion | The version of the object or 0 if not known yet. |
| $sortField | Number describing the field to sort by, or 0 if not known yet. |
| $sortOrder | Which way to sort, true means ascending while false is descending. |
remote_id will get an automatic and unique value. Definition at line 193 of file ezcontentobjecttreenode.php.
Referenced by addChildTo(), createSortingSQLStrings(), and unserialize().
| static eZContentObjectTreeNode::createAttributeFilterSQLStrings | ( | &$ | attributeFilter, |
| &$ | sortingInfo = array( 'sortCount' => 0, 'attributeJoinCount' => 0 ) |
||
| ) | [static] |
static
Definition at line 918 of file ezcontentobjecttreenode.php.
Referenced by calendar(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createClassFilteringSQLString | ( | $ | classFilterType, |
| &$ | classFilterArray | ||
| ) | [static] |
static
Definition at line 760 of file ezcontentobjecttreenode.php.
Referenced by calendar(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createExtendedAttributeFilterSQLStrings | ( | &$ | extendedAttributeFilter | ) | [static] |
static
Definition at line 817 of file ezcontentobjecttreenode.php.
Referenced by calendar(), subTreeByNodeID(), subTreeCountByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createGroupBySQLStrings | ( | &$ | outGroupBySelectText, |
| &$ | outGroupByText, | ||
| $ | groupBy | ||
| ) | [static] |
static
Definition at line 1473 of file ezcontentobjecttreenode.php.
Referenced by calendar(), subTreeByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createMainNodeConditionSQLString | ( | $ | mainNodeOnly | ) | [static] |
static
Definition at line 879 of file ezcontentobjecttreenode.php.
Referenced by calendar(), subTreeByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createNodesConditionSQLStringFromPath | ( | $ | nodePath, |
| $ | includingLastNodeInThePath, | ||
| $ | limit = false |
||
| ) | [static] |
static
| $limit | maximum number of nodes in the path to use, starting from last node |
Definition at line 1725 of file ezcontentobjecttreenode.php.
Referenced by fetchNodesByPathString().
| static eZContentObjectTreeNode::createNotEqParentSQLString | ( | $ | nodeID, |
| $ | depth = false, |
||
| $ | depthOperator = 'le' |
||
| ) | [static] |
static
Definition at line 1303 of file ezcontentobjecttreenode.php.
Referenced by createPathConditionAndNotEqParentSQLStrings().
| eZContentObjectTreeNode::createObject | ( | $ | contentClassID, |
| $ | parentNodeID = 2 |
||
| ) |
Definition at line 3255 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::createObjectNameFilterConditionSQLString | ( | $ | filter | ) | [static] |
static
Definition at line 894 of file ezcontentobjecttreenode.php.
Referenced by subTreeByNodeID(), subTreeCountByNodeID(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createPathConditionAndNotEqParentSQLStrings | ( | &$ | outPathConditionStr, |
| &$ | outNotEqParentStr, | ||
| $ | nodeID, | ||
| $ | depth = false, |
||
| $ | depthOperator = 'le' |
||
| ) | [static] |
static
Definition at line 1360 of file ezcontentobjecttreenode.php.
Referenced by calendar(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createPathConditionSQLString | ( | $ | nodePath, |
| $ | nodeDepth, | ||
| $ | depth = false, |
||
| $ | depthOperator = 'le' |
||
| ) | [static] |
static
Definition at line 1317 of file ezcontentobjecttreenode.php.
Referenced by createPathConditionAndNotEqParentSQLStrings().
| static eZContentObjectTreeNode::createPermissionCheckingSQL | ( | $ | limitationList, |
| $ | treeTableName = 'ezcontentobject_tree', |
||
| $ | tableAliasName = 'ezcontentobject_tree' |
||
| ) | [static] |
static
Definition at line 1565 of file ezcontentobjecttreenode.php.
Referenced by calendar(), createPermissionCheckingSQLString(), eZContentFunctionCollection\fetchKeyword(), eZContentFunctionCollection\fetchKeywordCount(), eZSearchEngine\search(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createPermissionCheckingSQLString | ( | $ | limitationList | ) | [static] |
static Deprecated. Use 'createPermissionCheckingSQL' instead.
Definition at line 1556 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::createShowInvisibleSQLString | ( | $ | useSettings, |
| $ | fetchHidden = true |
||
| ) | [static] |
static If $useSettings is true $fetchHidden will be ignored. If $useSettings is false $fetchHidden will be used.
Definition at line 1764 of file ezcontentobjecttreenode.php.
Referenced by calendar(), eZContentFunctionCollection\fetchKeyword(), eZContentFunctionCollection\fetchKeywordCount(), eZSearchEngine\search(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), and subTreeMultiPaths().
| static eZContentObjectTreeNode::createSortingSQLStrings | ( | $ | sortList, |
| $ | treeTableName = 'ezcontentobject_tree', |
||
| $ | allowCustomColumns = false |
||
| ) | [static] |
static
Definition at line 543 of file ezcontentobjecttreenode.php.
Referenced by eZContentFunctionCollection\fetchKeyword(), eZContentObject\relatedObjects(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createVersionNameJoinsSQLString | ( | $ | useVersionName, |
| $ | includeAnd = true, |
||
| $ | onlyTranslated = false, |
||
| $ | lang = false, |
||
| $ | treeTableName = 'ezcontentobject_tree' |
||
| ) | [static] |
static
Definition at line 1536 of file ezcontentobjecttreenode.php.
Referenced by calendar(), fetchNodesByPathString(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createVersionNameTablesSQLString | ( | $ | useVersionName | ) | [static] |
static
Definition at line 1505 of file ezcontentobjecttreenode.php.
Referenced by calendar(), fetchNodesByPathString(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| static eZContentObjectTreeNode::createVersionNameTargetsSQLString | ( | $ | useVersionName | ) | [static] |
static
Definition at line 1520 of file ezcontentobjecttreenode.php.
Referenced by fetchNodesByPathString(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
Definition at line 5674 of file ezcontentobjecttreenode.php.
Definition at line 6056 of file ezcontentobjecttreenode.php.
Referenced by eZNodeviewfunctions\generateNodeViewData().
Definition at line 241 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::dataTypeByClassAttributeID | ( | $ | classAttributeID | ) | [static] |
Definition at line 496 of file ezcontentobjecttreenode.php.
Referenced by createSortingSQLStrings().
| static eZContentObjectTreeNode::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Reimplemented in eZContentObjectTrashNode.
Definition at line 67 of file ezcontentobjecttreenode.php.
Referenced by eZSSLZone\checkNodeID(), eZSSLZone\checkObject(), and fetchByContentObjectID().
| static eZContentObjectTreeNode::deleteNodeWhereParent | ( | $ | node, |
| $ | id | ||
| ) | [static] |
Definition at line 5321 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::eZContentObjectTreeNode | ( | $ | row = array() | ) |
Constructor
Definition at line 62 of file ezcontentobjecttreenode.php.
Referenced by create(), fetchList(), getClassesJsArray(), and makeObjectsArray().
| static eZContentObjectTreeNode::fetch | ( | $ | nodeID = false, |
| $ | lang = false, |
||
| $ | asObject = true, |
||
| $ | conditions = false |
||
| ) | [static] |
Fetches a node by ID.
| int | array | $nodeID | Either a node ID or array of node IDs |
| string | $lang | language code to fetch the node in. If not provided, the prioritized language list is used |
| bool | $asObject | True to fetch the node as an eZContentObjectTreeNode, false to fetch its attributes as an array |
| array | $conditions | An associative array (field => value) of fetch conditions. Will be applied as is to the SQL query |
Definition at line 3004 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectPackageHandler\add(), eZContentOperationCollection\addAssignment(), addChildTo(), eZPolicyLimitation\allValuesAsArrayWithNames(), assignSectionToSubTree(), availableClassListJsArray(), eZContentFunctionCollection\canInstantiateClassList(), eZContentOperationCollection\changeHideStatus(), eZContentOperationCollection\changeSortOrder(), eZContentUpload\checkAccess(), checkAccess(), checkNodeAssignments(), checkNodeMovements(), classListFromPolicy(), eZSubtreeCache\cleanupByNodeIDs(), eZNodeviewfunctions\contentViewGenerate(), copyObject(), copyPublishContentObject(), copySubtree(), eZContentFunctions\createAndPublishObject(), eZContentOperationCollection\createFeedForNode(), eZObjectRelationListType\createNewObject(), createObject(), createPathConditionAndNotEqParentSQLStrings(), creator(), eZContentOperationCollection\deleteObject(), eZSimplifiedXMLEditOutput\eznodeHref(), eZShopFunctionCollection\fetchBestSellList(), ezpContentLocation\fetchByNodeId(), fetchByPath(), fetchByRemoteID(), fetchByURLPath(), eZContentFunctionCollection\fetchContentNode(), eZContentFunctionCollection\fetchKeyword(), eZContentFunctionCollection\fetchMostViewedTopList(), eZWebDAVContentServer\fetchNodeByTranslation(), eZWebDAVContentBackend\fetchNodeByTranslation(), eZSubtreeNotificationRule\fetchNodesForUserID(), eZCollaborationFunctionCollection\fetchObjectTreeCount(), fetchParent(), eZWebDAVContentServer\fetchParentNodeByTranslation(), eZWebDAVContentBackend\fetchParentNodeByTranslation(), eZContentFunctionCollection\fetchSameClassAttributeNodeList(), eZContentFunctionCollection\fetchTipafriendTopList(), findMainNode(), ezpContent\fromNodeId(), eZContentObjectPackageHandler\generateFetchAliasArray(), eZContentCacheManager\generateObjectViewCache(), eZContentObjectPackageHandler\generatePackage(), eZContentObjectPackageCreator\generatePackageInformation(), eZSSLZone\getSSLZones(), eZContentObjectPackageHandler\handleParameters(), eZHTTPHeader\headerOverrideArray(), importRSSItem(), eZContentStructureTreeOperator\initContentStructureTree(), eZObjectRelationListType\initializeObjectAttribute(), eZContentObjectPackageInstaller\initializeTopNodes(), eZTreeMenuOperator\modify(), eZTopMenuOperator\modify(), eZContentObjectTreeNodeOperations\move(), move(), eZSubtreeNotificationRule\node(), eZContentUpload\nodeAliasID(), eZContentObjectAssignmentHandler\nodeID(), object(), eZContentObjectTrashNode\originalParent(), eZXMLOutputHandler\prefetch(), eZSimplifiedXMLInputParser\publishHandlerEmbed(), eZSimplifiedXMLInputParser\publishHandlerLink(), eZContentOperationCollection\publishNode(), eZContentOperationCollection\readObject(), eZContentOperationCollection\removeFeedForNode(), removeNode(), eZContentOperationCollection\removeNodes(), removeSubtrees(), reverseRelatedCount(), eZRSSEditFunction\setItemDefaults(), eZContentObjectAssignmentHandler\setupAssignments(), eZContentStructureTreeOperator\subTree(), eZContentOperationCollection\swapNode(), eZSiteInstaller\swapNodes(), eZXMLTextType\transformLinksToRemoteLinks(), updateMainNodeID(), eZContentOperationCollection\updatePriority(), and viewCount().
| static eZContentObjectTreeNode::fetchAliasesFromNodeList | ( | $ | nodeList | ) | [static] |
Fetches path_identification_string for a list of nodes.
| array(int) | $nodeList |
Definition at line 2902 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::fetchByContentObjectID | ( | $ | contentObjectID, |
| $ | asObject = true, |
||
| $ | contentObjectVersion = false |
||
| ) | [static] |
Definition at line 2859 of file ezcontentobjecttreenode.php.
Referenced by eZWishList\discountPercent(), eZRole\fetchByUser(), eZLDAPUser\publishNewUserGroup(), eZContentObjectVersion\serialize(), and eZContentObject\setAlwaysAvailableLanguageID().
| eZContentObjectTreeNode::fetchByCRC | ( | $ | pathStr | ) |
Definition at line 2853 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::fetchByPath | ( | $ | pathString, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 2879 of file ezcontentobjecttreenode.php.
Referenced by eZPolicyLimitation\allValuesAsArrayWithNames().
| static eZContentObjectTreeNode::fetchByRemoteID | ( | $ | remoteID, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 2874 of file ezcontentobjecttreenode.php.
Referenced by eZContentFunctionCollection\fetchContentNode(), eZContentObjectPackageHandler\installFetchAliases(), eZContentObjectPackageHandler\installOverrides(), eZContentObjectPackageHandler\installSuspendedNodeAssignment(), eZContentOperationCollection\publishNode(), eZXMLTextType\transformRemoteLinksToLinks(), and unserialize().
| static eZContentObjectTreeNode::fetchByURLPath | ( | $ | pathString, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 2884 of file ezcontentobjecttreenode.php.
Referenced by eZStaticCache\generateNodeListCache(), eZContentObjectPackageHandler\handleParameters(), eZContentUpload\nodeAliasID(), eZSiteInstaller\nodeByUrl(), eZSimplifiedXMLInputParser\publishHandlerEmbed(), and eZSimplifiedXMLInputParser\publishHandlerLink().
| static eZContentObjectTreeNode::fetchClassIdentifierListByPathString | ( | $ | nodePath, |
| $ | withLastNode, | ||
| $ | limit = false |
||
| ) | [static] |
Extracts each node that in the path from db and returns an array of class identifiers
| $nodePath | A string containing the path of the node, it consists of node IDs starting from the root and delimited by / (slash). |
| $withLastNode | If true the last node in the path is included in the list. The last node is the node which the path was fetched from. |
| $limit | maximum number of nodes in the path to use, starting from last node |
Example
$list = fetchClassIdentifierListByPathString( '/2/10/', false );
Definition at line 3238 of file ezcontentobjecttreenode.php.
Referenced by eZContentCacheManager\nodeListForObject().
| static eZContentObjectTreeNode::fetchList | ( | $ | asObject = true, |
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
Fetches a list of nodes and returns it. Offset and limitation can be set if needed.
Definition at line 517 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::fetchListCount | ( | ) | [static] |
Fetches the number of nodes which exists in the system.
Definition at line 505 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::fetchNode | ( | $ | contentObjectID, |
| $ | parentNodeID | ||
| ) | [static] |
Finds the node for the object $contentObjectID which placed as child of node $parentNodeID.
null if no node was found. Definition at line 3118 of file ezcontentobjecttreenode.php.
Referenced by checkNodeActions(), checkNodeMovements(), eZContentObjectTreeNodeOperations\move(), eZContentOperationCollection\publishNode(), eZLDAPUser\publishUpdateUser(), and eZContentObject\unserialize().
| static eZContentObjectTreeNode::fetchNodesByPathString | ( | $ | nodePath, |
| $ | withLastNode = false, |
||
| $ | asObjects = true, |
||
| $ | limit = false |
||
| ) | [static] |
| $withLastNode | If true the last node in the path is included in the list. The last node is the node which the path was fetched from. |
| $asObjects | If true then return PHP objects, if not return raw row data. |
| $limit | maximum number of nodes in the path to use, starting from last node |
Definition at line 3182 of file ezcontentobjecttreenode.php.
Referenced by fetchClassIdentifierListByPathString(), and fetchPath().
Definition at line 3148 of file ezcontentobjecttreenode.php.
Referenced by removeThis(), updatePathIdentificationString(), and updateSubTreePath().
Definition at line 3167 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::findMainNode | ( | $ | objectID, |
| $ | asObject = false |
||
| ) | [static] |
Get Main Node Id ( or Main Node if $asObject = true ) by Content Object Id.
| int | $objectID | |
| boolean | $asObject |
Definition at line 2922 of file ezcontentobjecttreenode.php.
Referenced by eZContentObject\mainNode(), and eZContentObject\mainNodeID().
| static eZContentObjectTreeNode::findMainNodeArray | ( | $ | objectIDArray, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the main nodes for an array of object id's.
| array(int) | $objectIDArray an array of object IDs | |
| bool | $asObject | Wether to return the result as an array of eZContentObjectTreeNode (true) or as an array of associative arrays (false) |
Definition at line 2959 of file ezcontentobjecttreenode.php.
Referenced by eZKeyword\relatedObjects().
| static eZContentObjectTreeNode::findNode | ( | $ | parentNode, |
| $ | id, | ||
| $ | asObject = false, |
||
| $ | remoteID = false |
||
| ) | [static] |
Definition at line 5327 of file ezcontentobjecttreenode.php.
Referenced by deleteNodeWhereParent(), eZContentOperationCollection\publishNode(), and storeNodeAssignments().
| static eZContentObjectTreeNode::getClassesJsArray | ( | $ | node = false, |
| $ | includeFilter = true, |
||
| $ | groupList = false, |
||
| $ | fetchID = false, |
||
| $ | classes = false |
||
| ) | [static] |
Definition at line 6193 of file ezcontentobjecttreenode.php.
Referenced by availableClassListJsArray().
| static eZContentObjectTreeNode::getLimitationList | ( | &$ | limitation | ) | [static] |
static
Definition at line 1800 of file ezcontentobjecttreenode.php.
Referenced by calendar(), eZContentFunctionCollection\fetchKeyword(), eZContentFunctionCollection\fetchKeywordCount(), eZSearchEngine\search(), eZContentStructureTreeOperator\subTree(), subTreeByNodeID(), subTreeCountByNodeID(), subTreeMultiPaths(), and eZContentObjectTrashNode\trashList().
| eZContentObjectTreeNode::getName | ( | $ | language = false | ) |
Definition at line 5392 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::getParentNodeId | ( | $ | nodeID | ) | [static] |
Get parent node id by node id
| $nodeID | the node id you want parent node id for. |
Definition at line 5248 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::getParentNodeIdListByContentObjectID | ( | $ | objectIDs, |
| $ | groupByObjectId = false, |
||
| $ | onlyMainNode = false |
||
| ) | [static] |
Get parent node id's by content object id's.
| int | array | $objectIDs | |
| bool | $groupByObjectId | groups parent node ids by object id they belong to. |
| bool | $onlyMainNode | limits result to parent node id of main node. |
Definition at line 5274 of file ezcontentobjecttreenode.php.
Referenced by eZContentObject\checkGroupLimitationAccess(), eZContentObject\mainParentNodeID(), and eZContentObject\parentNodes().
Definition at line 5655 of file ezcontentobjecttreenode.php.
Referenced by object(), and setCurrentLanguage().
| eZContentObjectTreeNode::hasCurrentSubtreeLimitation | ( | array $ | policy | ) | [protected] |
Checks if provided policy array has a limitation on current subtree.
| array | $policy |
Definition at line 4986 of file ezcontentobjecttreenode.php.
Referenced by canCreateClassList().
Definition at line 5793 of file ezcontentobjecttreenode.php.
Definition at line 5802 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::hideSubTree | ( | eZContentObjectTreeNode $ | node, |
| $ | modifyRootNode = true |
||
| ) | [static] |
static
| $node | Root node of the subtree |
| $modifyRootNode | Whether to modify the root node (true/false) |
Hide algorithm: if ( root node of the subtree is visible ) { 1) Mark root node as hidden and invisible 2) Recursively mark child nodes as invisible except for ones which have been previously marked as invisible } else { Mark root node as hidden }
In some cases we don't want to touch the root node when (un)hiding a subtree, for example after content/move or content/copy. That's why $modifyRootNode argument is used.
Definition at line 5839 of file ezcontentobjecttreenode.php.
Referenced by eZContentOperationCollection\changeHideStatus(), and updateNodeVisibility().
Definition at line 279 of file ezcontentobjecttreenode.php.
Referenced by eZNodeviewfunctions\generateNodeViewData().
| static eZContentObjectTreeNode::makeObjectsArray | ( | $ | array, |
| $ | with_contentobject = true |
||
| ) | [static] |
Definition at line 5169 of file ezcontentobjecttreenode.php.
Referenced by eZContentObject\assignedNodes(), childrenByName(), fetch(), fetchNode(), fetchNodesByPathString(), findMainNodeArray(), findNode(), eZSearchEngine\search(), subTreeByNodeID(), and subTreeMultiPaths().
| eZContentObjectTreeNode::move | ( | $ | newParentNodeID, |
| $ | nodeID = 0 |
||
| ) |
Moves the node to the given node.
role system clean up
Definition at line 4210 of file ezcontentobjecttreenode.php.
Definition at line 5642 of file ezcontentobjecttreenode.php.
Referenced by classIdentifier(), classIsContainer(), className(), dataMap(), ezpContent\fromNode(), removeNodeFromTree(), removeThis(), and updateSubTreePath().
| static eZContentObjectTreeNode::parentDepthLimitationList | ( | ) | [static] |
Definition at line 6074 of file ezcontentobjecttreenode.php.
Definition at line 3153 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectTrashNode\originalParent(), and pathWithNames().
| eZContentObjectTreeNode::pathWithNames | ( | $ | regenerateCurrent = false | ) |
Definition at line 3356 of file ezcontentobjecttreenode.php.
Referenced by urlAlias().
Get remote id of content node, the remote ID is often used to synchronise imports and exports. If there is no remote ID a new unique one will be generated.
Definition at line 263 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::removeNode | ( | $ | nodeID = 0 | ) | [static] |
Definition at line 3658 of file ezcontentobjecttreenode.php.
Referenced by deleteNodeWhereParent(), and eZContentObject\removeThis().
| eZContentObjectTreeNode::removeNodeFromTree | ( | $ | moveToTrash = true | ) |
Will check if you are removing the main node in which case it relocates the main node before removing it. It will also remove the object if there no more node assignments for it.
| $moveToTrash | If true it will move the object to trash, if false the object will be purged from the system. |
Definition at line 4071 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::removeSubtrees | ( | $ | deleteIDArray, |
| $ | moveToTrash = true, |
||
| $ | infoOnly = false |
||
| ) | [static] |
Will remove the nodes in the subtrees defined in $deleteIDArray, it will only remove the nodes unless there are no more nodes for an object in which case the object is removed too.
| $moveToTrash | If true it will move the object to trash, if false the object will be purged from the system. |
| $infoOnly | If set to true then it will not remove the subtree but instead return information on what will happen if it is removed. See subtreeRemovalInformation() for the returned structure. |
Definition at line 3815 of file ezcontentobjecttreenode.php.
Referenced by eZContentOperationCollection\deleteObject(), eZContentObjectOperations\remove(), eZContentOperationCollection\removeOldNodes(), subtreeRemovalInformation(), and eZContentObjectPackageHandler\uninstall().
Removes the current node. Use ->removeNodeFromTree() if you need to handle main node change + remove object if needed
Definition at line 3676 of file ezcontentobjecttreenode.php.
Referenced by removeNodeFromTree().
| static eZContentObjectTreeNode::reverseRelatedCount | ( | $ | nodeIDArray | ) | [static, private] |
Return reverse related count for specified node
| $nodeIDArray,array | of node id's |
Definition at line 4022 of file ezcontentobjecttreenode.php.
Referenced by removeSubtrees().
| eZContentObjectTreeNode::serialize | ( | $ | options, |
| $ | contentNodeIDArray, | ||
| $ | topNodeIDArray | ||
| ) |
Serialize ContentObjectTreeNode
$options contentNodeIDArray topNodeIDArray
Definition at line 5573 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::setContentObject | ( | $ | object | ) |
Sets the current content object for this node.
Definition at line 5666 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::setCurrentLanguage | ( | $ | languageCode | ) |
Definition at line 6061 of file ezcontentobjecttreenode.php.
Referenced by eZNodeviewfunctions\generateNodeViewData().
| eZContentObjectTreeNode::setName | ( | $ | name | ) |
Definition at line 5427 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::setUseCurrentUserDraft | ( | $ | enable | ) | [static] |
Enables / disables Use current user draft mode for data map.
When this mode is enabled (disabled by default), current user draft is used _if_ available on all dataMap calls.
| bool | $enable |
Definition at line 231 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::setVersionByObjectID | ( | $ | objectID, |
| $ | newVersion | ||
| ) | [static] |
Definition at line 6050 of file ezcontentobjecttreenode.php.
Referenced by eZContentOperationCollection\setObjectStatusPublished().
| static eZContentObjectTreeNode::showInvisibleNodes | ( | ) | [static] |
static
Definition at line 1782 of file ezcontentobjecttreenode.php.
Referenced by eZNodeviewfunctions\contentViewGenerate(), createShowInvisibleSQLString(), and eZRSSExport\generateFeed().
Definition at line 2730 of file ezcontentobjecttreenode.php.
Referenced by children().
| static eZContentObjectTreeNode::sortArrayBySortFieldAndSortOrder | ( | $ | sortField, |
| $ | sortOrder | ||
| ) | [static] |
Definition at line 2742 of file ezcontentobjecttreenode.php.
Referenced by eZContentStructureTreeOperator\createContentStructureNode(), and sortArray().
| static eZContentObjectTreeNode::sortFieldID | ( | $ | sortFieldName | ) | [static] |
Definition at line 2692 of file ezcontentobjecttreenode.php.
Referenced by eZContentClassPackageHandler\install(), and unserialize().
| static eZContentObjectTreeNode::sortFieldName | ( | $ | sortFieldID | ) | [static] |
'path'. Definition at line 2655 of file ezcontentobjecttreenode.php.
Referenced by eZContentClassPackageHandler\classDOMTree(), serialize(), and sortArrayBySortFieldAndSortOrder().
| static eZContentObjectTreeNode::sortKeyByClassAttributeID | ( | $ | classAttributeID | ) | [static] |
Definition at line 488 of file ezcontentobjecttreenode.php.
Referenced by eZSearchEngine\buildSortSQL(), createAttributeFilterSQLStrings(), and createSortingSQLStrings().
| eZContentObjectTreeNode::store | ( | $ | fieldFilters = null | ) |
Reimplemented from eZPersistentObject.
Definition at line 5632 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectTrashNode\storeToTrash().
| eZContentObjectTreeNode::subTree | ( | $ | params = false | ) |
Definition at line 2023 of file ezcontentobjecttreenode.php.
Referenced by children(), and clearViewCacheForSubtree().
| static eZContentObjectTreeNode::subTreeByNodeID | ( | $ | params = false, |
| $ | nodeID = 0 |
||
| ) | [static] |
Definition at line 1837 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectPackageHandler\addNode(), eZContentCacheManager\appendChildrenNodeIDs(), eZContentCacheManager\appendSiblingsNodeIDs(), copySubtree(), eZObjectRelationType\fetchObjectAttributeHTTPInput(), eZContentFunctionCollection\fetchObjectTree(), eZLDAPUser\goAndPublishGroups(), eZTreeMenuOperator\modify(), eZCache\purgeImageAlias(), ezpContentRepository\query(), and subTree().
| eZContentObjectTreeNode::subTreeCount | ( | $ | params = array() | ) |
Count number of subnodes
| params | array |
Definition at line 2457 of file ezcontentobjecttreenode.php.
Referenced by childrenCount(), and clearViewCacheForSubtree().
| static eZContentObjectTreeNode::subTreeCountByNodeID | ( | $ | params = array(), |
| $ | nodeID | ||
| ) | [static] |
Definition at line 2302 of file ezcontentobjecttreenode.php.
Referenced by eZContentFunctionCollection\fetchObjectTreeCount(), ezpContentRepository\queryCount(), and subTreeCount().
| static eZContentObjectTreeNode::subTreeGroupByDateField | ( | $ | field, |
| $ | type | ||
| ) | [static] |
Definition at line 2256 of file ezcontentobjecttreenode.php.
Referenced by createGroupBySQLStrings().
| static eZContentObjectTreeNode::subTreeMultiPaths | ( | $ | nodesParams, |
| $ | listParams = NULL |
||
| ) | [static] |
Retrieve subtrees from multiple paths.
This method composes a list of objects retrieved from various node paths, sorted by criteria that are globally applied to the whole list.
It is for example useful for an RSS feed that serves content from several node paths. The respective subtrees need to be amalgated and the resulting object listed sorted by publishing date to show the latest entries in chronological order.
The first parameter is a multi-dimensional array containing the node IDs and filter criteria assigned to each of the nodes:
array( [node_1] => array( 'ClassFilterType' => [filter_type], 'ClassFilterArray' => [filter_array] ), [node_2] => array( 'ClassFilterType' => [filter_type], 'ClassFilterArray' => [filter_array] ) )
The second parameter is a single-dimensional array with criteria applied to the list of objects retrieved from the various subtrees:
array( 'SortBy' => [sorting-criteria] )
Definition at line 2060 of file ezcontentobjecttreenode.php.
Referenced by eZRSSExportItem\fetchNodeList().
| static eZContentObjectTreeNode::subtreeRemovalInformation | ( | $ | deleteIDArray | ) | [static] |
Returns information on what will happen if all subtrees in $deleteIDArray is removed. The returned structure is:
true if removed objects can be moved to trash, some objects are not allowed to be in trash (e.g user).true if all selected items can be removed, false otherwisefalse if not -- object_node_count - The number of nodes the object has (before removal) -- sole_node_count - The number of nodes in the subtree (excluding current) that does not have multiple locations.Definition at line 3794 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectPackageHandler\uninstall().
| eZContentObjectTreeNode::subtreeSoleNodeCount | ( | $ | params = array() | ) |
Definition at line 4138 of file ezcontentobjecttreenode.php.
| static eZContentObjectTreeNode::unhideSubTree | ( | eZContentObjectTreeNode $ | node, |
| $ | modifyRootNode = true |
||
| ) | [static] |
static
| $node | Root node of the subtree |
| $modifyRootNode | Whether to modify the root node (true/false) |
Unhide algorithm: if ( parent node is visible ) { 1) Mark root node as not hidden and visible. 2) Recursively mark child nodes as visible (except for nodes previosly marked as hidden, and all their children). } else { Mark root node as not hidden. }
Definition at line 5903 of file ezcontentobjecttreenode.php.
Referenced by eZContentOperationCollection\changeHideStatus(), and updateNodeVisibility().
| static eZContentObjectTreeNode::unserialize | ( | $ | contentNodeDOMNode, |
| $ | contentObject, | ||
| $ | version, | ||
| $ | isMain, | ||
| &$ | nodeList, | ||
| &$ | options, | ||
| $ | handlerType = 'ezcontentobject' |
||
| ) | [static] |
Creates propper nodeassigment from contentNodeDOMNode specification
| contentobjecttreenode | DOMNode |
| contentobject. | |
| version | |
| isMain | |
| options |
Definition at line 5445 of file ezcontentobjecttreenode.php.
Referenced by checkAccess(), and classListFromPolicy().
Update and store modified_subnode value for this node and all super nodes.
Definition at line 5611 of file ezcontentobjecttreenode.php.
Referenced by hideSubTree(), store(), and unhideSubTree().
| static eZContentObjectTreeNode::updateMainNodeID | ( | $ | mainNodeID, |
| $ | objectID, | ||
| $ | version = false, |
||
| $ | parentMainNodeID, | ||
| $ | updateSection = true |
||
| ) | [static] |
Updates the main node selection for the content object $objectID.
| $mainNodeID | The ID of the node that should be that main node |
| $objectID | The ID of the object that all nodes belong to |
| $version | The version of the object to update node assignments, use false for currently published version. |
| $parentMainNodeID | The ID of the parent node of the new main placement |
Definition at line 2823 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectPackageHandler\installSuspendedNodeAssignment(), eZLDAPUser\publishUpdateUser(), eZContentOperationCollection\removeAssignment(), removeNodeFromTree(), eZContentOperationCollection\removeNodes(), eZContentObject\unserialize(), and eZContentOperationCollection\updateMainAssignment().
| static eZContentObjectTreeNode::updateNodeVisibility | ( | $ | node, |
| $ | parentNode, | ||
| $ | recursive = true |
||
| ) | [static] |
static Depending on the new parent node visibility, recompute "is_invisible" attribute for the given node and its children. (used after content/move or content/copy)
Definition at line 5971 of file ezcontentobjecttreenode.php.
Referenced by copyObject(), eZWebDAVContentBackend\copyObject(), eZWebDAVContentBackend\copyObjectSameDirectory(), copyPublishContentObject(), and move().
| eZContentObjectTreeNode::updatePathIdentificationString | ( | $ | pathIdentificationName | ) | [private] |
Updates the path_identification_string field in ezcontentobject_tree by fetching the value from the parent and appending $pathIdentificationName.
Definition at line 3624 of file ezcontentobjecttreenode.php.
Referenced by updateSubTreePath().
| eZContentObjectTreeNode::updateSubTreePath | ( | $ | updateParent = true, |
| $ | nodeMove = false |
||
| ) |
Definition at line 3491 of file ezcontentobjecttreenode.php.
Referenced by updateURLAlias().
Definition at line 3481 of file ezcontentobjecttreenode.php.
Definition at line 5734 of file ezcontentobjecttreenode.php.
Definition at line 5697 of file ezcontentobjecttreenode.php.
Referenced by url().
Get amount views of content node.
Definition at line 2645 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::$ClassIdentifier = null |
Contains the cached value of the class identifier.
Definition at line 6241 of file ezcontentobjecttreenode.php.
eZContentObjectTreeNode::$ClassIsContainer = null [protected] |
Definition at line 6243 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::$ClassName = null |
Definition at line 6242 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::$CurrentLanguage = false |
The current language for the node.
Definition at line 6235 of file ezcontentobjecttreenode.php.
| eZContentObjectTreeNode::$Name |
Name of the node.
Definition at line 6238 of file ezcontentobjecttreenode.php.
eZContentObjectTreeNode::$useCurrentUserDraft = false [static, protected] |
Definition at line 220 of file ezcontentobjecttreenode.php.
Definition at line 48 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 49 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 54 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 47 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 45 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 52 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
| const eZContentObjectTreeNode::SORT_FIELD_NAME = 9 |
Definition at line 51 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
| const eZContentObjectTreeNode::SORT_FIELD_NODE_ID = 11 |
Definition at line 53 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
| const eZContentObjectTreeNode::SORT_FIELD_PATH = 1 |
Definition at line 43 of file ezcontentobjecttreenode.php.
Referenced by eZNodeAssignment\definition(), and sortFieldID().
Definition at line 50 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
Definition at line 44 of file ezcontentobjecttreenode.php.
Referenced by eZNodeAssignment\create(), eZObjectRelationListType\onPublish(), and sortFieldID().
Definition at line 46 of file ezcontentobjecttreenode.php.
Referenced by sortFieldID().
| const eZContentObjectTreeNode::SORT_ORDER_ASC = 1 |
Definition at line 57 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectVersion\assignToNode(), and eZNodeAssignment\definition().
| const eZContentObjectTreeNode::SORT_ORDER_DESC = 0 |
Definition at line 56 of file ezcontentobjecttreenode.php.
Referenced by eZContentObjectVersion\assignToNode(), eZNodeAssignment\create(), and eZObjectRelationListType\onPublish().