Public Member Functions | |
__construct () | |
get_output () | |
set_output ($output) | |
append_output ($output) | |
set_header ($header, $replace=TRUE) | |
set_content_type ($mime_type) | |
set_status_header ($code=200, $text= '') | |
enable_profiler ($val=TRUE) | |
set_profiler_sections ($sections) | |
cache ($time) | |
_display ($output= '') | |
_write_cache ($output) | |
_display_cache (&$CFG, &$URI) | |
Protected Attributes | |
$final_output | |
$cache_expiration = 0 | |
$headers = array() | |
$mime_types = array() | |
$enable_profiler = FALSE | |
$_zlib_oc = FALSE | |
$_profiler_sections = array() | |
$parse_exec_vars = TRUE | |
__construct | ( | ) |
Constructor
_display | ( | $output = '' ) |
Display Output
All "view" data is automatically put into this variable by the controller class:
$this->final_output
This function sends the finalized output data to the browser along with any server headers and profile data. It also stops the benchmark timer so the page rendering speed and memory usage can be shown.
public
string |
_display_cache | ( | & | $CFG, |
& | $URI | ||
) |
Update/serve a cached file
public
object | config class |
object | uri class |
_write_cache | ( | $output) |
Write a Cache File
public
string |
append_output | ( | $output) |
Append Output
Appends data onto the output string
public
string |
cache | ( | $time) |
Set Cache
public
integer |
enable_profiler | ( | $val = TRUE ) |
Enable/disable Profiler
public
bool |
get_output | ( | ) |
Get Output
Returns the current output string
public
set_content_type | ( | $mime_type) |
Set Content Type Header
public
string | extension of the file we're outputting |
set_header | ( | $header, | |
$replace = TRUE |
|||
) |
Set Header
Lets you set a server header which will be outputted with the final display.
Note: If a file is cached, headers will not be sent. We need to figure out how to permit header data to be saved with the cache data...
public
string | |
bool |
set_output | ( | $output) |
Set Output
Sets the output string
public
string |
set_profiler_sections | ( | $sections) |
Set Profiler Sections
Allows override of default / config settings for Profiler section display
public
array |
set_status_header | ( | $code = 200 , |
|
$text = '' |
|||
) |
Set HTTP Status Header moved to Common procedural functions in 1.7.2
public
int | the status code |
string |