protected function setUser()
    {
        $this->uid = $this->getParam('u', null);

        if (isset($this->uid)) {

            $this->current_user = $this->user->get($this->uid);

            if (empty($this->current_user['status'])) {
                $this->errorAndExit($this->text('No access'));
            }
        }
    }
protected function setUser()
    {
        $this->uid = $this->getParam('u', null);

        if (isset($this->uid)) {

            $this->current_user = $this->user->get($this->uid);

            if (empty($this->current_user['status'])) {
                $this->errorAndExit($this->text('No access'));
            }
        }
    }
protected function setUser ( ) { $ this -> uid = $ this -> getParam ( 'u' , null ) ; if ( isset ( $ this -> uid ) ) { $ this -> current_user = $ this -> user -> get ( $ this -> uid ) ; if ( empty ( $ this -> current_user [ 'status' ] ) ) { $ this -> errorAndExit ( $ this -> text ( 'No access' ) ) ; } } }
Sets the current user from the command using -u option
Sets the current user from the command using - u option