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);
 }