kernel/classes/ezcontentobjecttrashnode.php
File containing the eZContentObjectTrashNode class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZContentObjectTrashNode
File containing the eZContentObjectTrashNode class.
- Parent(s)
- \eZContentObjectTreeNode < \eZPersistentObject
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants

SORT_FIELD_PATH
= 1
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_PATH

SORT_FIELD_PUBLISHED
= 2
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_PUBLISHED

SORT_FIELD_MODIFIED
= 3
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_MODIFIED

SORT_FIELD_SECTION
= 4
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_SECTION

SORT_FIELD_DEPTH
= 5
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_DEPTH

SORT_FIELD_CLASS_IDENTIFIER
= 6
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_CLASS_IDENTIFIER

SORT_FIELD_CLASS_NAME
= 7
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_CLASS_NAME

SORT_FIELD_PRIORITY
= 8
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_PRIORITY

SORT_FIELD_NAME
= 9
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_NAME

SORT_FIELD_MODIFIED_SUBNODE
= 10
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_MODIFIED_SUBNODE

SORT_FIELD_NODE_ID
= 11
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_NODE_ID

SORT_FIELD_CONTENTOBJECT_ID
= 12
- Inherited_from
- \eZContentObjectTreeNode::SORT_FIELD_CONTENTOBJECT_ID

SORT_ORDER_DESC
= 0
- Inherited_from
- \eZContentObjectTreeNode::SORT_ORDER_DESC

SORT_ORDER_ASC
= 1
- Inherited_from
- \eZContentObjectTreeNode::SORT_ORDER_ASC
Properties


$ClassIdentifier= 'null'
null
Details- Type
- n/a
- Inherited_from
- \eZContentObjectTreeNode::$$ClassIdentifier


$ClassIsContainer= 'null'
null
Details- Type
- n/a
- Inherited_from
- \eZContentObjectTreeNode::$$ClassIsContainer


$ClassName= 'null'
null
Details- Type
- n/a
- Inherited_from
- \eZContentObjectTreeNode::$$ClassName


$CurrentLanguage= 'false'
false
Details- Type
- n/a
- Inherited_from
- \eZContentObjectTreeNode::$$CurrentLanguage


$Name= ''
- Type
- n/a
- Inherited_from
- \eZContentObjectTreeNode::$$Name


$PersistentDataDirty= ''
- Type
- n/a
- Inherited_from
- \eZPersistentObject::$$PersistentDataDirty
- Inherited_from
- \eZContentObjectTreeNode::$$PersistentDataDirty
Methods


addChild(
$contentobjectID, $asObject
=
false, $contentObjectVersion
=
false
)
:
void
Name | Type | Description |
---|---|---|
$contentobjectID | ||
$asObject | ||
$contentObjectVersion |


addChildTo(
$contentobjectID, $nodeID, $asObject
=
false, $contentObjectVersion
=
false
)
:
void
Name | Type | Description |
---|---|---|
$contentobjectID | ||
$nodeID | ||
$asObject | ||
$contentObjectVersion |


adjustPathElement(
$element, $useParentFromNodeObject
=
false
)
:
void
Name | Type | Description |
---|---|---|
$element | ||
$useParentFromNodeObject |


assignSectionToSubTree(
$nodeID, $sectionID, $oldSectionID
=
false
)
:
void
Name | Type | Description |
---|---|---|
$nodeID | ||
$sectionID | ||
$oldSectionID |


availableClassListJsArray(
$parameters
=
false
)
:
void
Name | Type | Description |
---|---|---|
$parameters |


availableClassesJsArray(
)
:
void


canCreateClassList(
$asObject
=
false, $includeFilter
=
true, $groupList
=
false, $fetchID
=
false
)
:
void
Name | Type | Description |
---|---|---|
$asObject | ||
$includeFilter | ||
$groupList | ||
$fetchID |


canMoveTo(
$classID
=
false
)
:
void
Name | Type | Description |
---|---|---|
$classID |


checkAccess(
$functionName, $originalClassID
=
false, $parentClassID
=
false, $returnAccessList
=
false, $language
=
false
)
:
void
Name | Type | Description |
---|---|---|
$functionName | ||
$originalClassID | ||
$parentClassID | ||
$returnAccessList | ||
$language |


checkPath(
$path
)
:
void
Name | Type | Description |
---|---|---|
$path |


childrenByName(
$name
)
:
void
Name | Type | Description |
---|---|---|
$name |


childrenCount(
$checkPolicies
=
true
)
:
void
Name | Type | Description |
---|---|---|
$checkPolicies |


classListFromPolicy(
$policy, $allowedLanguageCodes
=
false
)
:
void
Name | Type | Description |
---|---|---|
$policy | ||
$allowedLanguageCodes |


clearViewCacheForSubtree(
$node, $clearForRootNode
=
true
)
:
void
Name | Type | Description |
---|---|---|
$node | ||
$clearForRootNode |


conditionText(
$conditions
)
:
void
Name | Type | Description |
---|---|---|
$conditions |


conditionTextByRow(
$conditions, $row
)
:
void
Name | Type | Description |
---|---|---|
$conditions | ||
$row |


contentObjectVersionObject(
$asObject
=
true
)
:
void
Name | Type | Description |
---|---|---|
$asObject |


count(
$def, $conds
=
null, $field
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$conds | ||
$field |


create(
$parentNodeID
=
null, $contentObjectID
=
null, $contentObjectVersion
=
0, $sortField
=
0, $sortOrder
=
true
)
:
void
Name | Type | Description |
---|---|---|
$parentNodeID | ||
$contentObjectID | ||
$contentObjectVersion | ||
$sortField | ||
$sortOrder |


createAttributeFilterSQLStrings(
$attributeFilter, $sortingInfo
=
array( 'sortCount' => 0, 'attributeJoinCount' => 0 )
)
:
void
Name | Type | Description |
---|---|---|
$attributeFilter | ||
$sortingInfo |


createClassFilteringSQLString(
$classFilterType, $classFilterArray
)
:
void
Name | Type | Description |
---|---|---|
$classFilterType | ||
$classFilterArray |


createExtendedAttributeFilterSQLStrings(
$extendedAttributeFilter
)
:
void
Name | Type | Description |
---|---|---|
$extendedAttributeFilter |


createGroupBySQLStrings(
$outGroupBySelectText, $outGroupByText, $groupBy
)
:
void
Name | Type | Description |
---|---|---|
$outGroupBySelectText | ||
$outGroupByText | ||
$groupBy |


createMainNodeConditionSQLString(
$mainNodeOnly
)
:
void
Name | Type | Description |
---|---|---|
$mainNodeOnly |


createNodesConditionSQLStringFromPath(
$nodePath, $includingLastNodeInThePath, $limit
=
false
)
:
void
Name | Type | Description |
---|---|---|
$nodePath | ||
$includingLastNodeInThePath | ||
$limit |


createNotEqParentSQLString(
$nodeID, $depth
=
false, $depthOperator
=
'le'
)
:
void
Name | Type | Description |
---|---|---|
$nodeID | ||
$depth | ||
$depthOperator |


createObject(
$contentClassID, $parentNodeID
=
2
)
:
void
Name | Type | Description |
---|---|---|
$contentClassID | ||
$parentNodeID |


createObjectNameFilterConditionSQLString(
$filter
)
:
void
Name | Type | Description |
---|---|---|
$filter |


createPathConditionAndNotEqParentSQLStrings(
$outPathConditionStr, $outNotEqParentStr, $nodeID, $depth
=
false, $depthOperator
=
'le'
)
:
void
Name | Type | Description |
---|---|---|
$outPathConditionStr | ||
$outNotEqParentStr | ||
$nodeID | ||
$depth | ||
$depthOperator |


createPathConditionSQLString(
$nodePath, $nodeDepth, $depth
=
false, $depthOperator
=
'le'
)
:
void
Name | Type | Description |
---|---|---|
$nodePath | ||
$nodeDepth | ||
$depth | ||
$depthOperator |


createPermissionCheckingSQL(
$limitationList, $treeTableName
=
'ezcontentobject_tree', $tableAliasName
=
'ezcontentobject_tree'
)
:
void
Name | Type | Description |
---|---|---|
$limitationList | ||
$treeTableName | ||
$tableAliasName |


createPermissionCheckingSQLString(
$limitationList
)
:
void
Name | Type | Description |
---|---|---|
$limitationList |


createShowInvisibleSQLString(
$useSettings, $fetchHidden
=
true
)
:
void
Name | Type | Description |
---|---|---|
$useSettings | ||
$fetchHidden |


createSortingSQLStrings(
$sortList, $treeTableName
=
'ezcontentobject_tree', $allowCustomColumns
=
false
)
:
void
Name | Type | Description |
---|---|---|
$sortList | ||
$treeTableName | ||
$allowCustomColumns |


createVersionNameJoinsSQLString(
$useVersionName, $includeAnd
=
true, $onlyTranslated
=
false, $lang
=
false, $treeTableName
=
'ezcontentobject_tree'
)
:
void
Name | Type | Description |
---|---|---|
$useVersionName | ||
$includeAnd | ||
$onlyTranslated | ||
$lang | ||
$treeTableName |


createVersionNameTablesSQLString(
$useVersionName
)
:
void
Name | Type | Description |
---|---|---|
$useVersionName |


createVersionNameTargetsSQLString(
$useVersionName
)
:
void
Name | Type | Description |
---|---|---|
$useVersionName |


dataTypeByClassAttributeID(
$classAttributeID
)
:
void
Name | Type | Description |
---|---|---|
$classAttributeID |


eZContentObjectTreeNode(
$row
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$row |


eZPersistentObject(
$row
)
:
void
Name | Type | Description |
---|---|---|
$row |


escapeArray(
$array
)
:
void
Name | Type | Description |
---|---|---|
$array |


fetch(
int | array $nodeID
=
false, string $lang
=
false, bool $asObject
=
true, array $conditions
=
false
)
:
\eZContentObjectTreeNode
Name | Type | Description |
---|---|---|
$nodeID | int | array | Either a node ID or array of node IDs |
$lang | string | language code to fetch the node in. If not provided, the prioritized language list is used |
$asObject | bool | True to fetch the node as an eZContentObjectTreeNode, false to fetch its attributes as an array |
$conditions | array | An associative array (field => value) of fetch conditions. Will be applied as is to the SQL query |
Type | Description |
---|---|
\eZContentObjectTreeNode |


fetchAliasesFromNodeList(
\array(int) $nodeList
)
:
array
Fetches path_identification_string for a list of nodes
Inherited from: \eZContentObjectTreeNode::fetchAliasesFromNodeList()Name | Type | Description |
---|---|---|
$nodeList | \array(int) |
Type | Description |
---|---|
array | Associative array |


fetchByCRC(
$pathStr
)
:
void
Name | Type | Description |
---|---|---|
$pathStr |


fetchByContentObjectID(
$contentObjectID, $asObject
=
true, $contentObjectVersion
=
false
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectID | ||
$asObject | ||
$contentObjectVersion |


fetchByPath(
$pathString, $asObject
=
true
)
:
void
Name | Type | Description |
---|---|---|
$pathString | ||
$asObject |


fetchByRemoteID(
$remoteID, $asObject
=
true
)
:
void
Name | Type | Description |
---|---|---|
$remoteID | ||
$asObject |


fetchByURLPath(
$pathString, $asObject
=
true
)
:
void
Name | Type | Description |
---|---|---|
$pathString | ||
$asObject |


fetchClassIdentifierListByPathString(
$nodePath, $withLastNode, $limit
=
false
)
:
void
Name | Type | Description |
---|---|---|
$nodePath | ||
$withLastNode | ||
$limit |


fetchList(
$asObject
=
true, $offset
=
false, $limit
=
false
)
:
void
Name | Type | Description |
---|---|---|
$asObject | ||
$offset | ||
$limit |


fetchListForObject(
$objectID, $asObject
=
true, $offset
=
false, $limit
=
false
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$asObject | ||
$offset | ||
$limit |


fetchNode(
$contentObjectID, $parentNodeID
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectID | ||
$parentNodeID |


fetchNodesByPathString(
$nodePath, $withLastNode
=
false, $asObjects
=
true, $limit
=
false
)
:
void
Name | Type | Description |
---|---|---|
$nodePath | ||
$withLastNode | ||
$asObjects | ||
$limit |


fetchObject(
$def, $field_filters, $conds, $asObject
=
true, $grouping
=
null, $custom_fields
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$field_filters | ||
$conds | ||
$asObject | ||
$grouping | ||
$custom_fields |


fetchObjectList(
$def, $field_filters
=
null, $conds
=
null, $sorts
=
null, $limit
=
null, $asObject
=
true, $grouping
=
false, $custom_fields
=
null, $custom_tables
=
null, $custom_conds
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$field_filters | ||
$conds | ||
$sorts | ||
$limit | ||
$asObject | ||
$grouping | ||
$custom_fields | ||
$custom_tables | ||
$custom_conds |


findMainNode(
int $objectID, boolean $asObject
=
false
)
:
int | null
Get Main Node Id ( or Main Node if $asObject = true ) by Content Object Id.
Inherited from: \eZContentObjectTreeNode::findMainNode()Name | Type | Description |
---|---|---|
$objectID | int | |
$asObject | boolean |
Type | Description |
---|---|
int | null |


findMainNodeArray(
\array(int) $objectIDArray, bool $asObject
=
true
)
:
\array(array | \eZContentObjectTreeNode)
Fetches the main nodes for an array of object id's
Inherited from: \eZContentObjectTreeNode::findMainNodeArray()Name | Type | Description |
---|---|---|
$objectIDArray | \array(int) | an array of object IDs |
$asObject | bool | Wether to return the result as an array of eZContentObjectTreeNode (true) or as an array of associative arrays (false) |
Type | Description |
---|---|
\array(array | \eZContentObjectTreeNode) |


findNode(
$parentNode, $id, $asObject
=
false, $remoteID
=
false
)
:
void
Name | Type | Description |
---|---|---|
$parentNode | ||
$id | ||
$asObject | ||
$remoteID |


getClassesJsArray(
$node
=
false, $includeFilter
=
true, $groupList
=
false, $fetchID
=
false, $classes
=
false
)
:
void
Name | Type | Description |
---|---|---|
$node | ||
$includeFilter | ||
$groupList | ||
$fetchID | ||
$classes |


getName(
$language
=
false
)
:
void
Name | Type | Description |
---|---|---|
$language |


getParentNodeIdListByContentObjectID(
int | array $objectIDs, bool $groupByObjectId
=
false, bool $onlyMainNode
=
false
)
:
array
Get parent node id's by content object id's.
Inherited from: \eZContentObjectTreeNode::getParentNodeIdListByContentObjectID()Name | Type | Description |
---|---|---|
$objectIDs | int | array | |
$groupByObjectId | bool | groups parent node ids by object id they belong to. |
$onlyMainNode | bool | limits result to parent node id of main node. |
Type | Description |
---|---|
array | Returns array of parent node id's |
- Since
- Version 4.1
- Static


getShortAttributeName(
$db, $def, $attrName
)
:
void
Name | Type | Description |
---|---|---|
$db | ||
$def | ||
$attrName |


handleRows(
$rows, $class_name, $asObject
)
:
void
Name | Type | Description |
---|---|---|
$rows | ||
$class_name | ||
$asObject |


hasAttribute(
$attr
)
:
void
Name | Type | Description |
---|---|---|
$attr |


hasCurrentSubtreeLimitation(
array $policy
)
:
bool
Checks if provided policy array has a limitation on current subtree
Inherited from: \eZContentObjectTreeNode::hasCurrentSubtreeLimitation()Name | Type | Description |
---|---|---|
$policy | array |
Type | Description |
---|---|
bool |


hasDirtyData(
)
:
void


hiddenInvisibleString(
)
:
void


hiddenStatusString(
)
:
void


hideSubTree(
$node, $modifyRootNode
=
true
)
:
void
Name | Type | Description |
---|---|---|
$node | ||
$modifyRootNode |


makeObjectsArray(
$array, $with_contentobject
=
true
)
:
void
Name | Type | Description |
---|---|---|
$array | ||
$with_contentobject |


move(
$newParentNodeID, $nodeID
=
0
)
:
void
Name | Type | Description |
---|---|---|
$newParentNodeID | ||
$nodeID |


newObjectOrder(
$def, $orderField, $conditions
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$orderField | ||
$conditions |


pathWithNames(
$regenerateCurrent
=
false
)
:
void
Name | Type | Description |
---|---|---|
$regenerateCurrent |


remove(
$conditions
=
null, $extraConditions
=
null
)
:
void
Name | Type | Description |
---|---|---|
$conditions | ||
$extraConditions |


removeNodeFromTree(
$moveToTrash
=
true
)
:
void
Name | Type | Description |
---|---|---|
$moveToTrash |


removeObject(
$def, $conditions
=
null, $extraConditions
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$conditions | ||
$extraConditions |


removeSubtrees(
$deleteIDArray, $moveToTrash
=
true, $infoOnly
=
false
)
:
void
Name | Type | Description |
---|---|---|
$deleteIDArray | ||
$moveToTrash | ||
$infoOnly |


reorderObject(
$def, $orderField, $conditions, $down
=
true
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$orderField | ||
$conditions | ||
$down |


replaceFieldsWithShortNames(
$db, $fieldDefs, $fields
)
:
void
Name | Type | Description |
---|---|---|
$db | ||
$fieldDefs | ||
$fields |


serialize(
$options, $contentNodeIDArray, $topNodeIDArray
)
:
void
Name | Type | Description |
---|---|---|
$options | ||
$contentNodeIDArray | ||
$topNodeIDArray |


setAttribute(
$attr, $val
)
:
void
Name | Type | Description |
---|---|---|
$attr | ||
$val |


setContentObject(
$object
)
:
void
Name | Type | Description |
---|---|---|
$object |


setCurrentLanguage(
$languageCode
)
:
void
Name | Type | Description |
---|---|---|
$languageCode |


setHasDirtyData(
$hasDirtyData
)
:
void
Name | Type | Description |
---|---|---|
$hasDirtyData |


setName(
$name
)
:
void
Name | Type | Description |
---|---|---|
$name |


setVersionByObjectID(
$objectID, $newVersion
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$newVersion |


sortArrayBySortFieldAndSortOrder(
$sortField, $sortOrder
)
:
void
Name | Type | Description |
---|---|---|
$sortField | ||
$sortOrder |


sortKeyByClassAttributeID(
$classAttributeID
)
:
void
Name | Type | Description |
---|---|---|
$classAttributeID |


store(
$fieldFilters
=
null
)
:
void
Name | Type | Description |
---|---|---|
$fieldFilters |


storeObject(
$obj, $fieldFilters
=
null
)
:
void
Name | Type | Description |
---|---|---|
$obj | ||
$fieldFilters |


subTree(
$params
=
false
)
:
void
Name | Type | Description |
---|---|---|
$params |


subTreeByNodeID(
$params
=
false, $nodeID
=
0
)
:
void
Name | Type | Description |
---|---|---|
$params | ||
$nodeID |


subTreeCount(
$params
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$params |


subTreeCountByNodeID(
$params
=
array(), $nodeID
)
:
void
Name | Type | Description |
---|---|---|
$params | ||
$nodeID |


subTreeMultiPaths(
$nodesParams, $listParams
=
NULL
)
:
void
Name | Type | Description |
---|---|---|
$nodesParams | ||
$listParams |


subtreeSoleNodeCount(
$params
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$params |


swapRow(
$table, $keys, $order_id, $rows, $id1, $id2
)
:
void
Name | Type | Description |
---|---|---|
$table | ||
$keys | ||
$order_id | ||
$rows | ||
$id1 | ||
$id2 |


trashList(
$params
=
false, $asCount
=
false
)
:
void
Name | Type | Description |
---|---|---|
$params | ||
$asCount |


unhideSubTree(
$node, $modifyRootNode
=
true
)
:
void
Name | Type | Description |
---|---|---|
$node | ||
$modifyRootNode |


unserialize(
$contentNodeDOMNode, $contentObject, $version, $isMain, $nodeList, $options, $handlerType
=
'ezcontentobject'
)
:
void
Name | Type | Description |
---|---|---|
$contentNodeDOMNode | ||
$contentObject | ||
$version | ||
$isMain | ||
$nodeList | ||
$options | ||
$handlerType |


updateAndStoreModified(
)
:
void


updateMainNodeID(
$mainNodeID, $objectID, $version
=
false, $parentMainNodeID, $updateSection
=
true
)
:
void
Name | Type | Description |
---|---|---|
$mainNodeID | ||
$objectID | ||
$version | ||
$parentMainNodeID | ||
$updateSection |


updateNodeVisibility(
$node, $parentNode, $recursive
=
true
)
:
void
Name | Type | Description |
---|---|---|
$node | ||
$parentNode | ||
$recursive |


updateObjectList(
$parameters
)
:
void
Name | Type | Description |
---|---|---|
$parameters |


updatePathIdentificationString(
$pathIdentificationName
)
:
void
Name | Type | Description |
---|---|---|
$pathIdentificationName |


updateSubTreePath(
$updateParent
=
true, $nodeMove
=
false
)
:
void
Name | Type | Description |
---|---|---|
$updateParent | ||
$nodeMove |