XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
DisplayHandler Class Reference
Inheritance diagram for DisplayHandler:
Handler

Public Member Functions

 printContent (&$oModule)
 
 _debugOutput ()
 
 _printXMLHeader ()
 
 _printHTMLHeader ()
 
 _printJSONHeader ()
 
 _printHttpStatusCode ($code)
 

Public Attributes

 $content_size = 0
 
 $gz_enabled = FALSE
 
 $handler = NULL
 

Detailed Description

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com) DisplayHandler is responsible for displaying the execution result.
Depending on the request type, it can display either HTML or XML content.
Xml content is simple xml presentation of variables in oModule while html content is the combination of the variables of oModue and template files/.

Definition at line 12 of file DisplayHandler.class.php.

Member Function Documentation

DisplayHandler::_debugOutput ( )

Print debugging message to designated output source depending on the value set to __DEBUG_OUTPUT_.
This method only functions when DEBUG variable is set to 1. DEBUG_OUTPUT == 0, messages are written in ./files/_debug_message.php

Returns
void

Definition at line 134 of file DisplayHandler.class.php.

DisplayHandler::_printHTMLHeader ( )

print a HTTP HEADER for HTML, which is encoded in UTF-8

Returns
void

Definition at line 331 of file DisplayHandler.class.php.

DisplayHandler::_printHttpStatusCode (   $code)

print a HTTP HEADER for HTML, which is encoded in UTF-8

Returns
void

Definition at line 359 of file DisplayHandler.class.php.

DisplayHandler::_printJSONHeader ( )

print a HTTP HEADER for JSON, which is encoded in UTF-8

Returns
void

Definition at line 345 of file DisplayHandler.class.php.

DisplayHandler::_printXMLHeader ( )

print a HTTP HEADER for XML, which is encoded in UTF-8

Returns
void

Definition at line 317 of file DisplayHandler.class.php.

DisplayHandler::printContent ( $oModule)

print either html or xml content given oModule object

Remarks
addon execution and the trigger execution are included within this method, which might create inflexibility for the fine grained caching
Parameters
ModuleObject$oModulethe module object
Returns
void

Definition at line 25 of file DisplayHandler.class.php.

Member Data Documentation

DisplayHandler::$content_size = 0

Definition at line 15 of file DisplayHandler.class.php.

DisplayHandler::$gz_enabled = FALSE

Definition at line 16 of file DisplayHandler.class.php.

DisplayHandler::$handler = NULL

Definition at line 17 of file DisplayHandler.class.php.


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