loadObjectStateGroupListData() abstract public method

Loads data for all object state groups, filtered by $offset and $limit.
abstract public loadObjectStateGroupListData ( integer $offset, integer $limit ) : array
$offset integer
$limit integer
return array
 /**
  * Loads data for all object state groups, filtered by $offset and $limit.
  *
  * @param int $offset
  * @param int $limit
  *
  * @return array
  */
 public function loadObjectStateGroupListData($offset, $limit)
 {
     try {
         return $this->innerGateway->loadObjectStateGroupListData($offset, $limit);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Loads all object state groups
  *
  * @param int $offset
  * @param int $limit
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[]
  */
 public function loadAllGroups($offset = 0, $limit = -1)
 {
     $data = $this->objectStateGateway->loadObjectStateGroupListData($offset, $limit);
     return $this->objectStateMapper->createObjectStateGroupListFromData($data);
 }