Class mr_helper_testwebservice

Description

MR Helper Test Web Service

This helper is primarily for mr_server_abstract

  • author: Mark Nielsen

Located in /helper/testwebservice.php (line 44)

mr_helper_abstract
   |
   --mr_helper_testwebservice
Variable Summary
string $markup
Method Summary
void __destruct ()
string debuginfo (string $request, Zend_Http_Response $response)
string document (string $classname, string $methodname, string $response)
string format_response (string $response)
string generalize_text (string $string)
void simpletest_report (string $serviceclass, string $servicemethod, array $requestparams, string $response)
Variables
string $markup = '' (line 50)

Wiki Markup

  • access: protected

Inherited Variables

Inherited from mr_helper_abstract

mr_helper_abstract::$_helper_namespace
Methods
Destructor __destruct (line 58)

Print final markup string

  • todo: Some other way to do this?
  • access: public
void __destruct ()
debuginfo (line 235)

Generate debugging information for a web service request

This can be handy to throw into exceptions.

  • throws: coding_exception
  • access: public
string debuginfo (string $request, Zend_Http_Response $response)
  • string $request: The last request
  • Zend_Http_Response $response: The last response
document (line 73)

Document a web service along with its response

  • author: Mark Nielsen
  • access: public
string document (string $classname, string $methodname, string $response)
  • string $classname: The service class name
  • string $methodname: The service method name
  • string $response: The server response
format_response (line 213)

Given a server response, generate output for HTML

  • access: public
string format_response (string $response)
  • string $response: The server response
generalize_text (line 184)

Strip out site specific information from text

  • access: public
string generalize_text (string $string)
  • string $string: The string to strip
simpletest_report (line 165)

Generate nice output for simpletest regarding a request

  • access: public
void simpletest_report (string $serviceclass, string $servicemethod, array $requestparams, string $response)
  • string $serviceclass: The service class name
  • string $servicemethod: The service class method name
  • array $requestparams: The request parameters
  • string $response: The server response

Inherited Methods

Inherited From mr_helper_abstract

mr_helper_abstract::_set_helper_namespace()

Documentation generated on Thu, 28 Jun 2012 16:33:53 -0700 by phpDocumentor 1.4.3