Loads data for an object state group.
abstract public loadObjectStateGroupData ( mixed $groupId ) : array | ||
$groupId | mixed | |
Résultat | array |
/** * Loads an object state group * * @param mixed $groupId * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found * * @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group */ public function loadGroup($groupId) { $data = $this->objectStateGateway->loadObjectStateGroupData($groupId); if (empty($data)) { throw new NotFoundException("ObjectStateGroup", $groupId); } return $this->objectStateMapper->createObjectStateGroupFromData($data); }
/** * Loads data for an object state group. * * @param mixed $groupId * * @return array */ public function loadObjectStateGroupData($groupId) { try { return $this->innerGateway->loadObjectStateGroupData($groupId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }