|
eZ Publish
[4.2]
|
The class eZNodeAssignment does. More...
Inheritance diagram for eZNodeAssignment:
Collaboration diagram for eZNodeAssignment:Public Member Functions | |
| cloneNodeAssignment ($nextVersionNumber=1, $contentObjectID=false) | |
| eZNodeAssignment ($row) | |
| fetchNode () | |
| getParentNode () | |
| getParentObject () | |
| isCreateOperation () | |
| isMoveOperation () | |
| isNopOperation () | |
| isRemoveOperation () | |
| isSetOperation () | |
| name () | |
| purge ($parentNodeID=false, $contentObjectID=false) | |
| remove ($parentNodeID=false, $contentObjectID=false) | |
| setName ($name) | |
| tempNode () | |
Static Public Member Functions | |
| static | create ($parameters=array()) |
| static | definition () |
| static | fetch ($contentObjectID, $version=1, $parentNode=0, $asObject=true) |
| static | fetchByID ($id, $asObject=true) |
| static | fetchChildCountByVersionStatus ($parentNodeIDList, $status=eZContentObjectVersion::STATUS_PENDING) |
| Fetch node assignment count by version status, giving parent node id list. | |
| static | fetchChildListByVersionStatus ($parentNodeIDList, $status=eZContentObjectVersion::STATUS_PENDING, $asObject=true) |
| Fetch node assignment list by version status, giving parent node id list. | |
| static | fetchForObject ($contentObjectID, $version=1, $main=0, $asObject=true) |
| static | fetchListByID ($idList, $asObject=true) |
| static | purgeByID ($assignmentID) |
| static | removeByID ($assignmentID) |
| static | setNewMainAssignment ($objectID, $version) |
Public Attributes | |
| $ContentobjectID | |
| $ContentObjectVersion | |
| $FromNodeID | |
| $ID | |
| $Main | |
| $ParentNode | |
| $ParentRemoteID | |
| $RemoteID | |
| Used for giving unique values to an assignment which can later be checked. | |
| $SortField | |
| $SortOrder | |
| const | OP_CODE_CREATE = 3 |
| const | OP_CODE_CREATE_NOP = 2 |
| const | OP_CODE_EXECUTE = 1 |
| const | OP_CODE_MOVE = 5 |
| const | OP_CODE_MOVE_NOP = 4 |
| const | OP_CODE_NOP = 0 |
| const | OP_CODE_REMOVE = 7 |
| const | OP_CODE_REMOVE_NOP = 6 |
| const | OP_CODE_SET = 9 |
| const | OP_CODE_SET_NOP = 8 |
The class eZNodeAssignment does.
Definition at line 39 of file eznodeassignment.php.
| eZNodeAssignment::cloneNodeAssignment | ( | $ | nextVersionNumber = 1, |
| $ | contentObjectID = false |
||
| ) |
Definition at line 511 of file eznodeassignment.php.
| static eZNodeAssignment::create | ( | $ | parameters = array() | ) | [static] |
Definition at line 207 of file eznodeassignment.php.
Referenced by cloneNodeAssignment(), eZWebDAVContentBackend\copyObject(), eZWebDAVContentBackend\copyObjectSameDirectory(), eZContentFunctions\createAndPublishObject(), importRSSItem(), eZContentObjectPackageHandler\installSuspendedNodeAssignment(), eZContentObjectAssignmentHandler\setupAssignments(), and tempNode().
| static eZNodeAssignment::definition | ( | ) | [static] |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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.
Definition at line 68 of file eznodeassignment.php.
Referenced by fetch(), fetchByID(), fetchForObject(), fetchListByID(), eZContentObjectPackageHandler\installSuspendedNodeAssignment(), remove(), and eZContentObjectTreeNode\unserialize().
| eZNodeAssignment::eZNodeAssignment | ( | $ | row | ) |
Constructor
Definition at line 61 of file eznodeassignment.php.
Referenced by create(), and fetchChildListByVersionStatus().
| static eZNodeAssignment::fetch | ( | $ | contentObjectID, |
| $ | version = 1, |
||
| $ | parentNode = 0, |
||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 408 of file eznodeassignment.php.
Referenced by getParentNode(), eZContentObjectTreeNodeOperations\move(), and eZObjectRelationListType\onPublish().
| static eZNodeAssignment::fetchByID | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the node assignment which has id $id and returns it.
Definition at line 433 of file eznodeassignment.php.
| static eZNodeAssignment::fetchChildCountByVersionStatus | ( | $ | parentNodeIDList, |
| $ | status = eZContentObjectVersion::STATUS_PENDING |
||
| ) | [static] |
Fetch node assignment count by version status, giving parent node id list.
| array | $parentNodeIDList | |
| int | $status |
Definition at line 460 of file eznodeassignment.php.
Referenced by eZContentObjectTreeNode\removeSubtrees().
| static eZNodeAssignment::fetchChildListByVersionStatus | ( | $ | parentNodeIDList, |
| $ | status = eZContentObjectVersion::STATUS_PENDING, |
||
| $ | asObject = true |
||
| ) | [static] |
Fetch node assignment list by version status, giving parent node id list.
| array | $idList | node id array |
| int | $status | status of the object version |
| boolean | $count | |
| boolean | $asObject | valid only when $count is false |
Definition at line 483 of file eznodeassignment.php.
| static eZNodeAssignment::fetchForObject | ( | $ | contentObjectID, |
| $ | version = 1, |
||
| $ | main = 0, |
||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 391 of file eznodeassignment.php.
Referenced by eZContentObjectVersion\checkAccess(), eZContentObject\checkAccess(), eZContentObjectTreeNode\checkAccess(), eZContentObjectVersion\mainParentNodeID(), eZContentObjectVersion\nodeAssignments(), eZContentObjectVersion\parentNodes(), and setNewMainAssignment().
| static eZNodeAssignment::fetchListByID | ( | $ | idList, |
| $ | asObject = true |
||
| ) | [static] |
Fetches all node assignments which is mentioned in array $ID and returns it.
Definition at line 445 of file eznodeassignment.php.
| eZNodeAssignment::fetchNode | ( | ) |
Finds the node for the current assignemnt if it exists and returns it.
null if no node was found. Definition at line 424 of file eznodeassignment.php.
| eZNodeAssignment::getParentNode | ( | ) |
Definition at line 526 of file eznodeassignment.php.
| eZNodeAssignment::getParentObject | ( | ) |
Definition at line 534 of file eznodeassignment.php.
| eZNodeAssignment::isCreateOperation | ( | ) |
Returns true if the assignment is a create operation.
Definition at line 175 of file eznodeassignment.php.
| eZNodeAssignment::isMoveOperation | ( | ) |
Returns true if the assignment is a move operation.
Definition at line 184 of file eznodeassignment.php.
| eZNodeAssignment::isNopOperation | ( | ) |
Returns true if the assignment is a nop (no operation) operation.
Definition at line 166 of file eznodeassignment.php.
| eZNodeAssignment::isRemoveOperation | ( | ) |
Returns true if the assignment is a remove operation.
Definition at line 193 of file eznodeassignment.php.
| eZNodeAssignment::isSetOperation | ( | ) |
Returns true if the assignment is a set (update/create) operation.
Definition at line 202 of file eznodeassignment.php.
| eZNodeAssignment::name | ( | ) |
Definition at line 157 of file eznodeassignment.php.
| eZNodeAssignment::purge | ( | $ | parentNodeID = false, |
| $ | contentObjectID = false |
||
| ) |
Delete specified nodeassignment if parentNodeID and contentObjectID are given, if they are false it will remove the current node assignment.
| $parentNodeID | The ID of the parent node |
| $contentObjectID | The ID of the object |
Definition at line 335 of file eznodeassignment.php.
| static eZNodeAssignment::purgeByID | ( | $ | assignmentID | ) | [static] |
Delelet the node assignment with the ID $assignmentID.
| $assignmentID | Either an ID or an array with IDs. |
true if it were able to remove the assignments, false if something failed. false. Definition at line 363 of file eznodeassignment.php.
Referenced by copyPublishContentObject().
| eZNodeAssignment::remove | ( | $ | parentNodeID = false, |
| $ | contentObjectID = false |
||
| ) |
Marks the specified nodeassignment to remove its node. It uses parentNodeID and contentObjectID if they are given, if they are false it will mark the current node assignment.
| $parentNodeID | The ID of the parent node |
| $contentObjectID | The ID of the object |
Reimplemented from eZPersistentObject.
Definition at line 266 of file eznodeassignment.php.
| static eZNodeAssignment::removeByID | ( | $ | assignmentID | ) | [static] |
Marks the node assignment with the ID $assignmentID to remove its node.
| $assignmentID | Either an ID or an array with IDs. |
true if it were able to remove the assignments, false if something failed. false. Definition at line 298 of file eznodeassignment.php.
| eZNodeAssignment::setName | ( | $ | name | ) |
Definition at line 152 of file eznodeassignment.php.
| static eZNodeAssignment::setNewMainAssignment | ( | $ | objectID, |
| $ | version | ||
| ) | [static] |
Chooses and sets new main assignment for the specified object, in case if there's main assignment already.
Definition at line 546 of file eznodeassignment.php.
Referenced by eZContentObject\unserialize().
| eZNodeAssignment::tempNode | ( | ) |
Definition at line 138 of file eznodeassignment.php.
| eZNodeAssignment::$ContentobjectID |
Definition at line 595 of file eznodeassignment.php.
| eZNodeAssignment::$ContentObjectVersion |
Definition at line 596 of file eznodeassignment.php.
| eZNodeAssignment::$FromNodeID |
Definition at line 601 of file eznodeassignment.php.
| eZNodeAssignment::$ID |
Definition at line 590 of file eznodeassignment.php.
| eZNodeAssignment::$Main |
Definition at line 600 of file eznodeassignment.php.
| eZNodeAssignment::$ParentNode |
Definition at line 597 of file eznodeassignment.php.
| eZNodeAssignment::$ParentRemoteID |
Definition at line 594 of file eznodeassignment.php.
| eZNodeAssignment::$RemoteID |
Used for giving unique values to an assignment which can later be checked.
This is often used in templates to provide limited choices for assignments.
Definition at line 593 of file eznodeassignment.php.
| eZNodeAssignment::$SortField |
Definition at line 598 of file eznodeassignment.php.
| eZNodeAssignment::$SortOrder |
Definition at line 599 of file eznodeassignment.php.
| const eZNodeAssignment::OP_CODE_CREATE = 3 |
Definition at line 47 of file eznodeassignment.php.
Referenced by create(), and isCreateOperation().
| const eZNodeAssignment::OP_CODE_CREATE_NOP = 2 |
Definition at line 46 of file eznodeassignment.php.
Referenced by eZContentObject\addLocation().
| const eZNodeAssignment::OP_CODE_EXECUTE = 1 |
Definition at line 44 of file eznodeassignment.php.
| const eZNodeAssignment::OP_CODE_MOVE = 5 |
Definition at line 50 of file eznodeassignment.php.
Referenced by isMoveOperation(), and eZContentObjectTreeNodeOperations\move().
| const eZNodeAssignment::OP_CODE_MOVE_NOP = 4 |
Definition at line 49 of file eznodeassignment.php.
| const eZNodeAssignment::OP_CODE_NOP = 0 |
Definition at line 43 of file eznodeassignment.php.
Referenced by isNopOperation().
| const eZNodeAssignment::OP_CODE_REMOVE = 7 |
Definition at line 53 of file eznodeassignment.php.
Referenced by isRemoveOperation(), remove(), removeByID(), and setNewMainAssignment().
| const eZNodeAssignment::OP_CODE_REMOVE_NOP = 6 |
Definition at line 52 of file eznodeassignment.php.
| const eZNodeAssignment::OP_CODE_SET = 9 |
Definition at line 56 of file eznodeassignment.php.
Referenced by eZContentObject\copyVersion(), and isSetOperation().
| const eZNodeAssignment::OP_CODE_SET_NOP = 8 |
Definition at line 55 of file eznodeassignment.php.