hideSubtree() abstract public method

Sets a location to be hidden, and it self + all children to invisible.
abstract public hideSubtree ( string $pathString )
$pathString string
 /**
  * Sets a location to be hidden, and it self + all children to invisible.
  *
  * @param string $pathString
  */
 public function hideSubtree($pathString)
 {
     try {
         return $this->innerGateway->hideSubtree($pathString);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Example #2
0
 /**
  * Sets a location to be hidden, and it self + all children to invisible.
  *
  * @param mixed $id Location ID
  */
 public function hide($id)
 {
     $sourceNodeData = $this->locationGateway->getBasicNodeData($id);
     $this->locationGateway->hideSubtree($sourceNodeData['path_string']);
 }