My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Protected Attributes
CI_Output Class Reference

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
 

Constructor & Destructor Documentation

__construct ( )

Constructor

Member Function Documentation

_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

Parameters
string
Returns
mixed
_display_cache ( $CFG,
$URI 
)

Update/serve a cached file

public

Parameters
objectconfig class
objecturi class
Returns
void
_write_cache (   $output)

Write a Cache File

public

Parameters
string
Returns
void
append_output (   $output)

Append Output

Appends data onto the output string

public

Parameters
string
Returns
void
cache (   $time)

Set Cache

public

Parameters
integer
Returns
void
enable_profiler (   $val = TRUE)

Enable/disable Profiler

public

Parameters
bool
Returns
void
get_output ( )

Get Output

Returns the current output string

public

Returns
string
set_content_type (   $mime_type)

Set Content Type Header

public

Parameters
stringextension of the file we're outputting
Returns
void
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
bool
Returns
void
set_output (   $output)

Set Output

Sets the output string

public

Parameters
string
Returns
void
set_profiler_sections (   $sections)

Set Profiler Sections

Allows override of default / config settings for Profiler section display

public

Parameters
array
Returns
void
set_status_header (   $code = 200,
  $text = '' 
)

Set HTTP Status Header moved to Common procedural functions in 1.7.2

public

Parameters
intthe status code
string
Returns
void

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