CI_Output Class Reference

List of all members.

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


Member Function Documentation

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

Returns:
mixed

CI_Output::_display_cache ( &$  CFG,
&$  URI 
)

Update/serve a cached file

public

Returns:
void

CI_Output::_write_cache ( output  ) 

Write a Cache File

public

Returns:
void

CI_Output::append_output ( output  ) 

Append Output

Appends data onto the output string

public

Parameters:
string 
Returns:
void

CI_Output::cache ( time  ) 

Set Cache

public

Parameters:
integer 
Returns:
void

CI_Output::CI_Output (  ) 

CI_Output::enable_profiler ( val = TRUE  ) 

Enable/disable Profiler

public

Parameters:
bool 
Returns:
void

CI_Output::get_output (  ) 

Get Output

Returns the current output string

public

Returns:
string

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

Parameters:
string 
Returns:
void

CI_Output::set_output ( output  ) 

Set Output

Sets the output string

public

Parameters:
string 
Returns:
void

CI_Output::set_status_header ( code = '200',
text = '' 
)

Set HTTP Status Header

public

Parameters:
int the status code
string 
Returns:
void


Member Data Documentation

CI_Output::$cache_expiration = 0

CI_Output::$enable_profiler = FALSE

CI_Output::$final_output

CI_Output::$headers = array()


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

Generated on Sun Nov 16 16:09:16 2008 for CodeIgniter by  doxygen 1.5.7.1