eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::loadRow PHP Method

loadRow() abstract public method

Loads single row matched by composite primary key.
abstract public loadRow ( mixed $parentId, string $textMD5 ) : array
$parentId mixed
$textMD5 string
return array
    public abstract function loadRow($parentId, $textMD5);

Usage Example

Beispiel #1
0
 /**
  * Loads URL alias by given $id.
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
  *
  * @param string $id
  *
  * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias
  */
 public function loadUrlAlias($id)
 {
     list($parentId, $textMD5) = explode('-', $id);
     $data = $this->gateway->loadRow($parentId, $textMD5);
     if (empty($data)) {
         throw new NotFoundException('URLAlias', $id);
     }
     $data['raw_path_data'] = $this->gateway->loadPathData($data['id']);
     return $this->mapper->extractUrlAliasFromData($data);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::loadRow