Public Member Functions | |
CI_Output () | |
get_output () | |
set_output ($output) | |
append_output ($output) | |
set_header ($header, $replace=TRUE) | |
set_status_header ($code= '200', $text= '') | |
enable_profiler ($val=TRUE) | |
cache ($time) | |
_display ($output= '') | |
_write_cache ($output) | |
_display_cache (&$CFG, &$URI) | |
Public Attributes | |
$final_output | |
$cache_expiration = 0 | |
$headers = array() | |
$enable_profiler = FALSE |
CI_Output::_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
CI_Output::_display_cache | ( | &$ | CFG, | |
&$ | URI | |||
) |
Update/serve a cached file
public
CI_Output::_write_cache | ( | $ | output | ) |
Write a Cache File
public
CI_Output::append_output | ( | $ | output | ) |
Append Output
Appends data onto the output string
public
string |
CI_Output::cache | ( | $ | time | ) |
Set Cache
public
integer |
CI_Output::CI_Output | ( | ) |
CI_Output::enable_profiler | ( | $ | val = TRUE |
) |
Enable/disable Profiler
public
bool |
CI_Output::get_output | ( | ) |
Get Output
Returns the current output string
public
CI_Output::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 |
CI_Output::set_output | ( | $ | output | ) |
Set Output
Sets the output string
public
string |
CI_Output::set_status_header | ( | $ | code = '200' , |
|
$ | text = '' | |||
) |
Set HTTP Status Header
public
int | the status code | |
string |
CI_Output::$cache_expiration = 0 |
CI_Output::$enable_profiler = FALSE |
CI_Output::$final_output |
CI_Output::$headers = array() |