setSectionForSubtree() abstract public method

Set section on all content objects in the subtree.
abstract public setSectionForSubtree ( mixed $pathString, mixed $sectionId ) : boolean
$pathString mixed
$sectionId mixed
return boolean
コード例 #1
0
 /**
  * Set section on all content objects in the subtree
  *
  * @param mixed $pathString
  * @param mixed $sectionId
  *
  * @return boolean
  */
 public function setSectionForSubtree($pathString, $sectionId)
 {
     try {
         return $this->innerGateway->setSectionForSubtree($pathString, $sectionId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
コード例 #2
0
ファイル: TreeHandler.php プロジェクト: Pixy/ezpublish-kernel
 /**
  * Set section on all content objects in the subtree.
  *
  * @param mixed $locationId
  * @param mixed $sectionId
  */
 public function setSectionForSubtree($locationId, $sectionId)
 {
     $nodeData = $this->locationGateway->getBasicNodeData($locationId);
     $this->locationGateway->setSectionForSubtree($nodeData['path_string'], $sectionId);
 }