public function actionDeregister($user)
    {
        $user = $this->getUser($user);
        if ($user->deregister()) {
            echo "User (" . $user->getID() . ") Deregistered.\n";
            return static::EXIT_CODE_NORMAL;
        }
        return static::EXIT_CODE_ERROR;
    }
public function actionDeregister($user)
    {
        $user = $this->getUser($user);
        if ($user->deregister()) {
            echo "User (" . $user->getID() . ") Deregistered.\n";
            return static::EXIT_CODE_NORMAL;
        }
        return static::EXIT_CODE_ERROR;
    }
public function actionDeregister ( $ user ) { $ user = $ this -> getUser ( $ user ) ; if ( $ user -> deregister ( ) ) { echo "User (" . $ user -> getID ( ) . ") Deregistered.\n" ; return static :: EXIT_CODE_NORMAL ; } return static :: EXIT_CODE_ERROR ; }
Deregister user.
@param User|string|integer $user The user to be deregistered.
@return int
Deregister user .