CI_Security

class CI_Security xss_clean($str[, $is_image = FALSE]) Parameters: $str (mixed) – Input string or an array of strings Returns: XSS-clean data Return type: mixed Tries to remove XSS exploits from the input data and returns the cleaned string. If the optional second parameter is set to true, it will return boolean TRUE if the image is safe to use and FALSE if malicious data was detected in it. sanitize_filename($str[, $relative_path = FALSE]) Parameters: $str (string) – File

CI_Parser::set_delimiters()

set_delimiters([$l = '{'[, $r = '}']]) Parameters: $l (string) – Left delimiter $r (string) – Right delimiter Return type: void Sets the delimiters (opening and closing) for a pseudo-variable “tag” in a template.

CI_Parser::parse_string()

parse_string($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string This method works exactly like parse(), only it accepts the template as a string instead of loading a view file.

CI_Parser::parse()

parse($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string Parses a template from the provided path and variables.

CI_Parser

class CI_Parser parse($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string Parses a template from the provided path and variables. parse_string($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only re

CI_Pagination::initialize()

initialize([$params = array()]) Parameters: $params (array) – Configuration parameters Returns: CI_Pagination instance (method chaining) Return type: CI_Pagination Initializes the Pagination class with your preferred options.

CI_Pagination::create_links()

create_links() Returns: HTML-formatted pagination Return type: string Returns a “pagination” bar, containing the generated links or an empty string if there’s just a single page.

CI_Pagination

class CI_Pagination initialize([$params = array()]) Parameters: $params (array) – Configuration parameters Returns: CI_Pagination instance (method chaining) Return type: CI_Pagination Initializes the Pagination class with your preferred options. create_links() Returns: HTML-formatted pagination Return type: string Returns a “pagination” bar, containing the generated links or an empty string if there’s just a single page.

CI_Output::_display()

_display([$output = '']) Parameters: $output (string) – Output data override Returns: void Return type: void Sends finalized output data to the browser along with any server headers. It also stops benchmark timers. Note This method is called automatically at the end of script execution, you won’t need to call it manually unless you are aborting script execution using exit() or die() in your code. Example: $response = array('status' => 'OK'); $this->output ->set_s

CI_Output::set_status_header()

set_status_header([$code = 200[, $text = '']]) Parameters: $code (int) – HTTP status code $text (string) – Optional message Returns: CI_Output instance (method chaining) Return type: CI_Output Permits you to manually set a server status header. Example: $this->output->set_status_header(401); // Sets the header as: Unauthorized See here for a full list of headers. Note This method is an alias for Common function set_status_header().