Public Member Functions | Protected Attributes

RestResponse Class Reference

List of all members.

Public Member Functions

 __construct ($response)
 out ()
 get_best_mime ($mime_types=null)
 get_mime_list ()
 get_accept ()
 get ()

Protected Attributes


Detailed Description

Definition at line 14 of file restresponse.php.

Constructor & Destructor Documentation

RestResponse::__construct ( response  ) 

Constructor for a REST response, sets the intended response for the request

array|string $response The intended response to the REST request

Definition at line 22 of file restresponse.php.

Member Function Documentation

RestResponse::get_best_mime ( mime_types = null  ) 

Determine the best mimetype to respond to the client with based on the accept header and the mimetypes available

array $mime_types An array of available mimetypes
null|string The best mimetype available to return based on the client accept header

Definition at line 40 of file restresponse.php.

RestResponse::out (  ) 

Output the response

Definition at line 29 of file restresponse.php.

The documentation for this class was generated from the following file: