Property | Type | Description | |
---|---|---|---|
$cache_expiration | integer | Cache expiration time | |
$enable_profiler | boolean | Enable Profiler flag | |
$final_output | string | Final output string | |
$headers | array | List of server headers | |
$mimes | array | List of mime types | |
$parse_exec_vars | boolean | Whether or not to parse variables like {elapsed_time} and {memory_usage}. |
Property | Type | Description | |
---|---|---|---|
$_compress_output | boolean | CI output compression flag | |
$_profiler_sections | array | List of profiler sections | |
$_zlib_oc | boolean | php.ini zlib.output_compression flag | |
$mime_type | string | Mime-type for the current page |
Method | Description | |
---|---|---|
__construct ( ) : void | Class constructor | |
_display ( string $output = '' ) : void | Display Output | |
_display_cache ( &$CFG, &$URI ) : boolean | Update/serve cached output | |
_write_cache ( string $output ) : void | Write Cache | |
append_output ( string $output ) : CI_Output | Append Output | |
cache ( integer $time ) : CI_Output | Set Cache | |
delete_cache ( string $uri = '' ) : boolean | Delete cache | |
enable_profiler ( boolean $val = TRUE ) : CI_Output | Enable/disable Profiler | |
get_content_type ( ) : string | Get Current Content-Type Header | |
get_header ( $header ) : string | Get Header | |
get_output ( ) : string | Get Output | |
set_cache_header ( integer $last_modified, integer $expiration ) : void | Set Cache Header | |
set_content_type ( string $mime_type, string $charset = NULL ) : CI_Output | Set Content-Type Header | |
set_header ( string $header, boolean $replace = TRUE ) : CI_Output | Set Header | |
set_output ( string $output ) : CI_Output | Set Output | |
set_profiler_sections ( array $sections ) : CI_Output | Set Profiler Sections | |
set_status_header ( integer $code = 200, string $text = '' ) : CI_Output | Set HTTP Status Header |
public __construct ( ) : void | ||
return | void |
public _display_cache ( &$CFG, &$URI ) : boolean | ||
return | boolean | TRUE on success or FALSE on failure |
public _write_cache ( string $output ) : void | ||
$output | string | Output data to cache |
return | void |
public append_output ( string $output ) : CI_Output | ||
$output | string | Data to append |
return | CI_Output |
public delete_cache ( string $uri = '' ) : boolean | ||
$uri | string | URI string |
return | boolean |
public enable_profiler ( boolean $val = TRUE ) : CI_Output | ||
$val | boolean | TRUE to enable or FALSE to disable |
return | CI_Output |
public get_content_type ( ) : string | ||
return | string | 'text/html', if not already set |
public get_output ( ) : string | ||
return | string |
public set_content_type ( string $mime_type, string $charset = NULL ) : CI_Output | ||
$mime_type | string | Extension of the file we're outputting |
$charset | string | Character set (default: NULL) |
return | CI_Output |
public set_header ( string $header, boolean $replace = TRUE ) : CI_Output | ||
$header | string | Header |
$replace | boolean | Whether to replace the old header value, if already set |
return | CI_Output |
public set_output ( string $output ) : CI_Output | ||
$output | string | Output data |
return | CI_Output |
public set_profiler_sections ( array $sections ) : CI_Output | ||
$sections | array | Profiler sections |
return | CI_Output |
public set_status_header ( integer $code = 200, string $text = '' ) : CI_Output | ||
$code | integer | Status code (default: 200) |
$text | string | Optional message |
return | CI_Output |
protected bool $_compress_output | ||
return | boolean |
protected array $_profiler_sections | ||
return | array |
protected bool $_zlib_oc | ||
return | boolean |
protected string $mime_type | ||
return | string |
public bool $parse_exec_vars | ||
return | boolean |