loadContentInfoByRemoteId() abstract public method

Returns an array with the relevant data.
abstract public loadContentInfoByRemoteId ( mixed $remoteId ) : array
$remoteId mixed
return array
 /**
  * Loads data for a content object identified by its remote ID
  *
  * Returns an array with the relevant data.
  *
  * @param mixed $remoteId
  *
  * @return array
  */
 public function loadContentInfoByRemoteId($remoteId)
 {
     try {
         return $this->innerGateway->loadContentInfoByRemoteId($remoteId);
     } catch (DBALException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     } catch (\PDOException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns the metadata object for a content identified by $remoteId.
  *
  * @param mixed $remoteId
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo
  */
 public function loadContentInfoByRemoteId($remoteId)
 {
     return $this->mapper->extractContentInfoFromRow($this->contentGateway->loadContentInfoByRemoteId($remoteId));
 }