changeMainLocation() public method

Updates ezcontentobject_tree and eznode_assignment tables (eznode_assignment for content current version number).
public changeMainLocation ( mixed $contentId, mixed $locationId )
$contentId mixed
$locationId mixed
Example #1
0
 /**
  * Changes main location of content identified by given $contentId to location identified by given $locationId
  *
  * Updates ezcontentobject_tree and eznode_assignment tables (eznode_assignment for content current version number).
  *
  * @param mixed $contentId
  * @param mixed $locationId
  *
  * @return void
  */
 public function changeMainLocation($contentId, $locationId)
 {
     $this->treeHandler->changeMainLocation($contentId, $locationId);
 }