eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::loadSectionDataByIdentifier PHP Method

loadSectionDataByIdentifier() abstract public method

Loads data for section with $identifier.
abstract public loadSectionDataByIdentifier ( string $identifier ) : string[][]
$identifier string
return string[][]
    public abstract function loadSectionDataByIdentifier($identifier);

Usage Example

コード例 #1
0
 /**
  * Get section data by identifier
  *
  * @param string $identifier
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If section is not found
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Section
  */
 public function loadByIdentifier($identifier)
 {
     $rows = $this->sectionGateway->loadSectionDataByIdentifier($identifier);
     if (empty($rows)) {
         throw new NotFound("Section", $identifier);
     }
     return $this->createSectionFromArray(reset($rows));
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::loadSectionDataByIdentifier