public static function getCredential($user_id)
    {
        $sql = new Pluf_SQL('login=%s', array(
            $user_id
        ));
        return Pluf::factory('User_Account')->getOne($sql->gen());
    }
public static function getCredential($user_id)
    {
        $sql = new Pluf_SQL('login=%s', array(
            $user_id
        ));
        return Pluf::factory('User_Account')->getOne($sql->gen());
    }
public static function getCredential ( $ user_id ) { $ sql = new Pluf_SQL ( 'login=%s' , array ( $ user_id ) ) ; return Pluf :: factory ( 'User_Account' ) -> getOne ( $ sql -> gen ( ) ) ; }
Returns credential data of given user if exist

In the case of the User backend, the $user_id is the login.

@return User_Account
Returns credential data of given user if exist