loadRoleAssignmentsByRoleId() abstract public method

Loads role assignments for given role ID.
abstract public loadRoleAssignmentsByRoleId ( mixed $roleId ) : array
$roleId mixed
return array
Esempio n. 1
0
 /**
  * Loads roles assignments Role.
  *
  * Role Assignments with same roleId and limitationIdentifier will be merged together into one.
  *
  * @param mixed $roleId
  *
  * @return \eZ\Publish\SPI\Persistence\User\RoleAssignment[]
  */
 public function loadRoleAssignmentsByRoleId($roleId)
 {
     $data = $this->roleGateway->loadRoleAssignmentsByRoleId($roleId);
     if (empty($data)) {
         return array();
     }
     return $this->mapper->mapRoleAssignments($data);
 }
 /**
  * Loads role assignments for given role ID.
  *
  * @param mixed $roleId
  *
  * @return array
  */
 public function loadRoleAssignmentsByRoleId($roleId)
 {
     try {
         return $this->innerGateway->loadRoleAssignmentsByRoleId($roleId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }