removeRoleAssignmentById() abstract public method

Remove role from user or user group, by assignment ID.
abstract public removeRoleAssignmentById ( mixed $roleAssignmentId )
$roleAssignmentId mixed
 /**
  * Remove role from user or user group, by assignment ID.
  *
  * @param mixed $roleAssignmentId
  */
 public function removeRoleAssignmentById($roleAssignmentId)
 {
     try {
         return $this->innerGateway->removeRoleAssignmentById($roleAssignmentId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Beispiel #2
0
 /**
  * Un-assign a role by assignment ID.
  *
  * @param mixed $roleAssignmentId The assignment ID.
  */
 public function removeRoleAssignment($roleAssignmentId)
 {
     $this->userGateway->removeRoleAssignmentById($roleAssignmentId);
 }