Snippets for eZ publish 3: Assigning sections

This is compatible with eZ Publish 3.

This is a Stub article. Help the eZ Publish community by expanding it!

To a subtree

include_once( 'kernel/classes/ezcontentobjecttreenode.php' );
 
eZContentObjectTreeNode::assignSectionToSubTree( $nodeID, $sectionID );include_once( 'kernel/classes/ezcontentcachemanager.php' );
eZContentCacheManager::clearAllContentCache();
 

To a single node

// Missing example