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_Security::entity_decode()

entity_decode($str[, $charset = NULL]) Parameters: $str (string) – Input string $charset (string) – Character set of the input string Returns: Entity-decoded string Return type: string This method acts a lot like PHP’s own native html_entity_decode() function in ENT_COMPAT mode, only it tries to detect HTML entities that don’t end in a semicolon because some browsers allow that. If the $charset parameter is left empty, then your configured $config['charset'] value will be used.

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_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_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

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_Output::set_profiler_sections()

set_profiler_sections($sections) Parameters: $sections (array) – Profiler sections Returns: CI_Output instance (method chaining) Return type: CI_Output Permits you to enable/disable specific sections of the Profiler when it is enabled. Please refer to the Profiler documentation for further information.

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().

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_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.