Pluf_Middleware_Tidy Class Reference

List of all members.

Public Member Functions

 process_response ($request, $response)


Detailed Description

Tidy middleware.

Check if a response contains HTML errors. It writes a general log in the 'tmp_folder' with a view of the details of the errors in separate files. It relies on the availability of tidy on the system path.

It checks only the pages with following status code: 200, 201, 202, 203, 204, 205, 206, 404, 501. And the following content type: text/html, text/html, application/xhtml+xml.

See also:
http://tidy.sourceforge.net/

Member Function Documentation

Pluf_Middleware_Tidy::process_response ( request,
response 
)

Process the response of a view.

If the status code and content type are allowed, perform the check.

Parameters:
Pluf_HTTP_Request The request
Pluf_HTTP_Response The response
Returns:
Pluf_HTTP_Response The 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