public function userExists($userLogin)
    {
        if ($userLogin == 'anonymous') {
            return true;
        }

        Piwik::checkUserIsNotAnonymous();
        Piwik::checkUserHasSomeViewAccess();

        if ($userLogin == Piwik::getCurrentUserLogin()) {
            return true;
        }

        return $this->model->userExists($userLogin);
    }
public function userExists($userLogin)
    {
        if ($userLogin == 'anonymous') {
            return true;
        }

        Piwik::checkUserIsNotAnonymous();
        Piwik::checkUserHasSomeViewAccess();

        if ($userLogin == Piwik::getCurrentUserLogin()) {
            return true;
        }

        return $this->model->userExists($userLogin);
    }
public function userExists ( $ userLogin ) { if ( $ userLogin == 'anonymous' ) { return true ; } Piwik :: checkUserIsNotAnonymous ( ) ; Piwik :: checkUserHasSomeViewAccess ( ) ; if ( $ userLogin == Piwik :: getCurrentUserLogin ( ) ) { return true ; } return $ this -> model -> userExists ( $ userLogin ) ; }
Returns true if the given userLogin is known in the database

@param string $userLogin
@return bool true if the user is known
Returns true if the given userLogin is known in the database