eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::loadRoleAssignmentsByGroupId PHP Method

loadRoleAssignmentsByGroupId() abstract public method

Loads role assignments for specified content ID.
abstract public loadRoleAssignmentsByGroupId ( mixed $groupId, boolean $inherited = false ) : array
$groupId mixed
$inherited boolean
return array
    public abstract function loadRoleAssignmentsByGroupId($groupId, $inherited = false);

Usage Example

コード例 #1
0
 /**
  * Loads roles assignments to a user/group.
  *
  * Role Assignments with same roleId and limitationIdentifier will be merged together into one.
  *
  * @param mixed $groupId In legacy storage engine this is the content object id roles are assigned to in ezuser_role.
  *                      By the nature of legacy this can currently also be used to get by $userId.
  * @param bool $inherit If true also return inherited role assignments from user groups.
  *
  * @return \eZ\Publish\SPI\Persistence\User\RoleAssignment[]
  */
 public function loadRoleAssignmentsByGroupId($groupId, $inherit = false)
 {
     $data = $this->roleGateway->loadRoleAssignmentsByGroupId($groupId, $inherit);
     if (empty($data)) {
         return array();
     }
     return $this->mapper->mapRoleAssignments($data);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::loadRoleAssignmentsByGroupId