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

getChildren() abstract public method

Returns data for the first level children of the location identified by given $locationId.
abstract public getChildren ( mixed $locationId ) : array
$locationId mixed
return array
    public abstract function getChildren($locationId);

Usage Example

Ejemplo n.º 1
0
 /**
  * Returns data for the first level children of the location identified by given $locationId
  *
  * @param mixed $locationId
  *
  * @return array
  */
 public function getChildren($locationId)
 {
     try {
         return $this->innerGateway->getChildren($locationId);
     } 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::getChildren