loadObjectStateGroupDataByIdentifier() абстрактный публичный Метод

Loads data for an object state group by identifier.
abstract public loadObjectStateGroupDataByIdentifier ( string $identifier ) : array
$identifier string
Результат array
Пример #1
0
 /**
  * Loads a object state group by identifier
  *
  * @param string $identifier
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group
  */
 public function loadGroupByIdentifier($identifier)
 {
     $data = $this->objectStateGateway->loadObjectStateGroupDataByIdentifier($identifier);
     if (empty($data)) {
         throw new NotFoundException("ObjectStateGroup", $identifier);
     }
     return $this->objectStateMapper->createObjectStateGroupFromData($data);
 }
 /**
  * Loads data for an object state group by identifier.
  *
  * @param string $identifier
  *
  * @return array
  */
 public function loadObjectStateGroupDataByIdentifier($identifier)
 {
     try {
         return $this->innerGateway->loadObjectStateGroupDataByIdentifier($identifier);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }