Returns an array with data about the Group with $groupId.
abstract public loadGroupData ( integer $groupId ) : array | ||
$groupId | integer | |
return | array |
/** * @param mixed $groupId * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If type group with $groupId is not found * * @return Group */ public function loadGroup($groupId) { $groups = $this->mapper->extractGroupsFromRows($this->contentTypeGateway->loadGroupData($groupId)); if (count($groups) !== 1) { throw new Exception\TypeGroupNotFound($groupId); } return $groups[0]; }
/** * Returns an array with data about the Group with $groupId. * * @param int $groupId * * @return array */ public function loadGroupData($groupId) { try { return $this->innerGateway->loadGroupData($groupId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }