setSectionForSubtree() abstract public méthode

Set section on all content objects in the subtree.
abstract public setSectionForSubtree ( mixed $pathString, mixed $sectionId ) : boolean
$pathString mixed
$sectionId mixed
Résultat boolean
 /**
  * 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);
     }
 }
 /**
  * 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);
 }