public static function getUser($login)
    {
        $model = new User_Account();
        $where = 'login = ' . $model->_toDb($login, 'login');
        $users = $model->getList(array(
            'filter' => $where
        ));
        if ($users === false or count($users) !== 1) {
            return false;
        }
        return $users[0];
    }
public static function getUser($login)
    {
        $model = new User_Account();
        $where = 'login = ' . $model->_toDb($login, 'login');
        $users = $model->getList(array(
            'filter' => $where
        ));
        if ($users === false or count($users) !== 1) {
            return false;
        }
        return $users[0];
    }
public static function getUser ( $ login ) { $ model = new User_Account ( ) ; $ where = 'login = ' . $ model -> _toDb ( $ login , 'login' ) ; $ users = $ model -> getList ( array ( 'filter' => $ where ) ) ; if ( $ users === false or count ( $ users ) !== 1 ) { return false ; } return $ users [ 0 ] ; }
Extract information of user and returns it.

@param string $login
@return User_Account user information
Extract information of user and returns it .