eZ Publish  [trunk]
eZContentObjectTreeNodeOperations Class Reference

The class eZContentObjectTreeNodeOperations is a wrapper for node's core-operations. It takes care about interface stuff. Example: there is a 'move' core-operation that moves a node from one location to another. But, for example, before and after moving we have to clear view caches for old and new placements. Clearing of the cache is handled by this class. More...

List of all members.

Public Member Functions

 eZContentObjectTreeNodeOperations ()

Static Public Member Functions

static move ($nodeID, $newParentNodeID)

Detailed Description

The class eZContentObjectTreeNodeOperations is a wrapper for node's core-operations. It takes care about interface stuff. Example: there is a 'move' core-operation that moves a node from one location to another. But, for example, before and after moving we have to clear view caches for old and new placements. Clearing of the cache is handled by this class.

Definition at line 21 of file ezcontentobjecttreenodeoperations.php.


Member Function Documentation

static eZContentObjectTreeNodeOperations::move ( nodeID,
newParentNodeID 
) [static]

A wrapper for eZContentObjectTreeNode's 'move' operation. It does:

  • clears caches for old placement;
  • performs actual move( calls eZContentObjectTreeNode->move() );
  • updates subtree path;
  • updates node's section;
  • updates assignment( setting new 'parent_node' );
  • clears caches for new placement;
Parameters:
$nodeIDThe id of a node to move.
$newParentNodeIDThe id of a new parent.
Returns:
true if 'move' was done successfully, otherwise false;

Definition at line 45 of file ezcontentobjecttreenodeoperations.php.

Referenced by eZWebDAVContentServer\moveContent(), eZWebDAVContentBackend\moveContent(), eZContentOperationCollection\moveNode(), and eZSiteInstaller\moveTreeNode().


The documentation for this class was generated from the following file: