kernel/content/ezcontentoperationcollection.php
static public function updateMainAssignment( $mainAssignmentID, $objectID, $mainAssignmentParentID )
    {
        eZContentObjectTreeNode::updateMainNodeID( $mainAssignmentID, $objectID, false, $mainAssignmentParentID );
        eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        if ( !eZSearch::getEngine() instanceof eZSearchEngine )
        {
            eZContentOperationCollection::registerSearchObject( $objectID );
        }

        return array( 'status' => true );
    }
static public function updateMainAssignment( $mainAssignmentID, $objectID, $mainAssignmentParentID )
    {
        eZContentObjectTreeNode::updateMainNodeID( $mainAssignmentID, $objectID, false, $mainAssignmentParentID );
        eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        if ( !eZSearch::getEngine() instanceof eZSearchEngine )
        {
            eZContentOperationCollection::registerSearchObject( $objectID );
        }

        return array( 'status' => true );
    }
static public function updateMainAssignment ( $ mainAssignmentID , $ objectID , $ mainAssignmentParentID ) { eZContentObjectTreeNode :: updateMainNodeID ( $ mainAssignmentID , $ objectID , false , $ mainAssignmentParentID ) ; eZContentCacheManager :: clearContentCacheIfNeeded ( $ objectID ) ; if ( ! eZSearch :: getEngine ( ) instanceof eZSearchEngine ) { eZContentOperationCollection :: registerSearchObject ( $ objectID ) ; } return array ( 'status' => true ) ; }
Update a node's main assignment

@param int $mainAssignmentID
@param int $objectID
@param int $mainAssignmentParentID

@return array An array with operation status, always true
Update a node s main assignment