Returns an array with basic node data for the node with $remoteId.
abstract public getBasicNodeDataByRemoteId ( mixed $remoteId ) : array | ||
$remoteId | mixed | |
Результат | array |
/** * Returns an array with basic node data for the node with $remoteId * * @todo optimize * @param mixed $remoteId * * @return array */ public function getBasicNodeDataByRemoteId($remoteId) { try { return $this->innerGateway->getBasicNodeDataByRemoteId($remoteId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * Loads the data for the location identified by $remoteId. * * @param string $remoteId * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException * * @return \eZ\Publish\SPI\Persistence\Content\Location */ public function loadByRemoteId($remoteId) { $data = $this->locationGateway->getBasicNodeDataByRemoteId($remoteId); return $this->locationMapper->createLocationFromRow($data); }