public static function isSuccess(stdClass $response)
    {
        if (is_object($response) && $response->success == true) {
            return HttpCodes::isOk($response->http_code);
        } else {
            return false;
        }
    }
public static function isSuccess(stdClass $response)
    {
        if (is_object($response) && $response->success == true) {
            return HttpCodes::isOk($response->http_code);
        } else {
            return false;
        }
    }
public static function isSuccess ( stdClass $ response ) { if ( is_object ( $ response ) && $ response -> success == true ) { return HttpCodes :: isOk ( $ response -> http_code ) ; } else { return false ; } }
Check if a response is a success.

@param stdClass $response The AJAX response in a format returned by buildResponse method

@return bool
Check if a response is a success .