eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler::setSectionForSubtree PHP Метод

setSectionForSubtree() публичный Метод

Set section on all content objects in the subtree.
public setSectionForSubtree ( mixed $locationId, mixed $sectionId )
$locationId mixed
$sectionId mixed
    public function setSectionForSubtree($locationId, $sectionId)
    {
        $nodeData = $this->locationGateway->getBasicNodeData($locationId);
        $this->locationGateway->setSectionForSubtree($nodeData['path_string'], $sectionId);
    }

Usage Example

Пример #1
0
 /**
  * Set section on all content objects in the subtree
  *
  * @param mixed $locationId
  * @param mixed $sectionId
  *
  * @return void
  */
 public function setSectionForSubtree($locationId, $sectionId)
 {
     $this->treeHandler->setSectionForSubtree($locationId, $sectionId);
 }