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

Loads data for all object states belonging to group with $groupId ID.
abstract public loadObjectStateListData ( mixed $groupId ) : array
$groupId mixed
Результат array
 /**
  * Loads data for all object states belonging to group with $groupId ID.
  *
  * @param mixed $groupId
  *
  * @return array
  */
 public function loadObjectStateListData($groupId)
 {
     try {
         return $this->innerGateway->loadObjectStateListData($groupId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Пример #2
0
 /**
  * This method returns the ordered list of object states of a group
  *
  * @param mixed $groupId
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ObjectState[]
  */
 public function loadObjectStates($groupId)
 {
     $data = $this->objectStateGateway->loadObjectStateListData($groupId);
     return $this->objectStateMapper->createObjectStateListFromData($data);
 }