The class eZNodeAssignment does. More...
Public Member Functions | |
| clone ($nextVersionNumber=1, $contentObjectID=false) | |
| create ($parameters=array()) | |
| definition () | |
| eZNodeAssignment ($row) | |
| fetch ($contentObjectID, $version=1, $parentNode=0, $asObject=true) | |
| fetchByID ($id, $asObject=true) | |
| fetchForObject ($contentObjectID, $version=1, $main=0, $asObject=true) | |
| fetchListByID ($idList, $asObject=true) | |
| & | 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 | |
| purgeByID ($assignmentID) | |
| removeByID ($assignmentID) | |
| setNewMainAssignment ($objectID, $version) | |
Private Attributes | |
| $ContentobjectID | |
| $ContentObjectVersion | |
| $FromNodeID | |
| $ID | |
| $Main | |
| $ParentNode | |
| $ParentRemoteID | |
| $RemoteID | |
| $SortField | |
| $SortOrder | |
The class eZNodeAssignment does.
Definition at line 59 of file eznodeassignment.php.
| eZNodeAssignment::clone | ( | $ | nextVersionNumber = 1, |
|
| $ | contentObjectID = false | |||
| ) |
Definition at line 463 of file eznodeassignment.php.
| eZNodeAssignment::create | ( | $ | parameters = array() |
) |
Definition at line 215 of file eznodeassignment.php.
Referenced by clone(), eZContentFunctions::createAndPublishObject(), eZContentObjectPackageHandler::installSuspendedNodeAssignment(), eZContentObjectAssignmentHandler::setupAssignments(), and tempNode().
| eZNodeAssignment::definition | ( | ) |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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 71 of file eznodeassignment.php.
Referenced by fetch(), fetchByID(), fetchForObject(), fetchListByID(), eZContentObjectPackageHandler::installSuspendedNodeAssignment(), remove(), and eZContentObjectTreeNode::unserialize().
| eZNodeAssignment::eZNodeAssignment | ( | $ | row | ) |
| eZNodeAssignment::fetch | ( | $ | contentObjectID, | |
| $ | version = 1, |
|||
| $ | parentNode = 0, |
|||
| $ | asObject = true | |||
| ) |
Definition at line 417 of file eznodeassignment.php.
Referenced by getParentNode(), eZContentObjectTreeNodeOperations::move(), and eZObjectRelationListType::onPublish().
| eZNodeAssignment::fetchByID | ( | $ | id, | |
| $ | asObject = true | |||
| ) |
Fetches the node assignment which has id $id and returns it.
Definition at line 443 of file eznodeassignment.php.
| eZNodeAssignment::fetchForObject | ( | $ | contentObjectID, | |
| $ | version = 1, |
|||
| $ | main = 0, |
|||
| $ | asObject = true | |||
| ) |
Definition at line 400 of file eznodeassignment.php.
Referenced by eZContentObjectVersion::checkAccess(), eZContentObjectTreeNode::checkAccess(), eZContentObject::checkAccess(), eZContentObjectVersion::mainParentNodeID(), eZContentObjectVersion::nodeAssignments(), eZContentObjectVersion::parentNodes(), and setNewMainAssignment().
| eZNodeAssignment::fetchListByID | ( | $ | idList, | |
| $ | asObject = true | |||
| ) |
Fetches all node assignments which is mentioned in array $ID and returns it.
Definition at line 455 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 433 of file eznodeassignment.php.
| & eZNodeAssignment::getParentNode | ( | ) |
Definition at line 478 of file eznodeassignment.php.
| & eZNodeAssignment::getParentObject | ( | ) |
Definition at line 487 of file eznodeassignment.php.
| & eZNodeAssignment::isCreateOperation | ( | ) |
Returns true if the assignment is a create operation.
Definition at line 179 of file eznodeassignment.php.
| & eZNodeAssignment::isMoveOperation | ( | ) |
Returns true if the assignment is a move operation.
Definition at line 189 of file eznodeassignment.php.
| & eZNodeAssignment::isNopOperation | ( | ) |
Returns true if the assignment is a nop (no operation) operation.
Definition at line 169 of file eznodeassignment.php.
| & eZNodeAssignment::isRemoveOperation | ( | ) |
Returns true if the assignment is a remove operation.
Definition at line 199 of file eznodeassignment.php.
| & eZNodeAssignment::isSetOperation | ( | ) |
Returns true if the assignment is a set (update/create) operation.
Definition at line 209 of file eznodeassignment.php.
| eZNodeAssignment::name | ( | ) |
Definition at line 160 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 343 of file eznodeassignment.php.
| 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 372 of file eznodeassignment.php.
| 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 274 of file eznodeassignment.php.
| 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 306 of file eznodeassignment.php.
| eZNodeAssignment::setName | ( | $ | name | ) |
Definition at line 155 of file eznodeassignment.php.
| 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 500 of file eznodeassignment.php.
Referenced by eZContentObject::unserialize().
| & eZNodeAssignment::tempNode | ( | ) |
Definition at line 141 of file eznodeassignment.php.
eZNodeAssignment::$ContentobjectID [private] |
Definition at line 550 of file eznodeassignment.php.
eZNodeAssignment::$ContentObjectVersion [private] |
Definition at line 551 of file eznodeassignment.php.
eZNodeAssignment::$FromNodeID [private] |
Definition at line 556 of file eznodeassignment.php.
eZNodeAssignment::$ID [private] |
Definition at line 545 of file eznodeassignment.php.
eZNodeAssignment::$Main [private] |
Definition at line 555 of file eznodeassignment.php.
eZNodeAssignment::$ParentNode [private] |
Definition at line 552 of file eznodeassignment.php.
eZNodeAssignment::$ParentRemoteID [private] |
Definition at line 549 of file eznodeassignment.php.
eZNodeAssignment::$RemoteID [private] |
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 548 of file eznodeassignment.php.
eZNodeAssignment::$SortField [private] |
Definition at line 553 of file eznodeassignment.php.
eZNodeAssignment::$SortOrder [private] |
Definition at line 554 of file eznodeassignment.php.
1.6.3