eZPublishCommunityProject(LegacyStack)  2013.5
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...

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.

Member Function Documentation

eZContentObjectTreeNodeOperations::eZContentObjectTreeNodeOperations ( )

Constructor

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;

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


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