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

getBasicNodeData() abstract public method

We might want to cache this, since this method is used by about every method in the location handler.
abstract public getBasicNodeData ( mixed $nodeId ) : array
$nodeId mixed
return array
    public abstract function getBasicNodeData($nodeId);

Usage Example

Ejemplo n.º 1
0
 /**
  * Returns an array with basic node data
  *
  * We might want to cache this, since this method is used by about every
  * method in the location handler.
  *
  * @todo optimize
  * @param mixed $nodeId
  *
  * @return array
  */
 public function getBasicNodeData($nodeId)
 {
     try {
         return $this->innerGateway->getBasicNodeData($nodeId);
     } 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::getBasicNodeData