eZ\Publish\Core\Persistence\Legacy\User\Gateway::removeRole PHP Méthode

removeRole() abstract public méthode

Remove role from user or user group.
abstract public removeRole ( mixed $contentId, mixed $roleId )
$contentId mixed
$roleId mixed
    public abstract function removeRole($contentId, $roleId);

Usage Example

 /**
  * Remove role from user or user group.
  *
  * @param mixed $contentId
  * @param mixed $roleId
  */
 public function removeRole($contentId, $roleId)
 {
     try {
         return $this->innerGateway->removeRole($contentId, $roleId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Gateway::removeRole