public function removeUser( core_kernel_classes_Resource $user)
    {
        $returnValue = (bool) false;

        if(!is_null($user)) {
            $this->checkCurrentUserAccess($this->getUserRoles($user));
			$returnValue = $this->generisUserService->removeUser($user);
            $this->getEventManager()->trigger(new UserRemovedEvent($user->getUri()));
		}

        return (bool) $returnValue;
    }
public function removeUser( core_kernel_classes_Resource $user)
    {
        $returnValue = (bool) false;

        if(!is_null($user)) {
            $this->checkCurrentUserAccess($this->getUserRoles($user));
			$returnValue = $this->generisUserService->removeUser($user);
            $this->getEventManager()->trigger(new UserRemovedEvent($user->getUri()));
		}

        return (bool) $returnValue;
    }
public function removeUser ( core_kernel_classes_Resource $ user ) { $ returnValue = ( bool ) false ; if ( ! is_null ( $ user ) ) { $ this -> checkCurrentUserAccess ( $ this -> getUserRoles ( $ user ) ) ; $ returnValue = $ this -> generisUserService -> removeUser ( $ user ) ; $ this -> getEventManager ( ) -> trigger ( new UserRemovedEvent ( $ user -> getUri ( ) ) ) ; } return ( bool ) $ returnValue ; }
Remove a user

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  core_kernel_classes_Resource $user
@return boolean
Remove a user