eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::setSectionForSubtree PHP Method

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
    public abstract function setSectionForSubtree($pathString, $sectionId);

Usage Example

Exemplo n.º 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);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::setSectionForSubtree