Pluf_HTTP_Response_CommandPassThru Class Reference

Inheritance diagram for Pluf_HTTP_Response_CommandPassThru:

Pluf_HTTP_Response

List of all members.

Public Member Functions

 __construct ($command, $mimetype=null)
 render ($output_body=true)


Detailed Description

Special response object to output the return value of a command.

You need to use escapeshellarg() and escapeshellcmd() to provide a "clean" command. The Content-Length will not be set as it is not possible to predict it.


Constructor & Destructor Documentation

Pluf_HTTP_Response_CommandPassThru::__construct ( command,
mimetype = null 
)

The command argument must be a safe string!

Parameters:
string Command to run.
string Mimetype (null)

Reimplemented from Pluf_HTTP_Response.


Member Function Documentation

Pluf_HTTP_Response_CommandPassThru::render ( output_body = true  ) 

Render a response object.

Reimplemented from Pluf_HTTP_Response.


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

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen