ascii_to_entities()

ascii_to_entities($str) Parameters: $str (string) – Input string Returns: A string with ASCII values converted to entities Return type: string Converts ASCII values to character entities, including high ASCII and MS Word characters that can cause problems when used in a web page, so that they can be shown consistently regardless of browser settings or stored reliably in a database. There is some dependence on your server’s supported character sets, so it may not be 100% reliable in

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.

encode_php_tags()

encode_php_tags($str) Parameters: $str (string) – Input string Returns: Safely formatted string Return type: string This is a security function that converts PHP tags to entities. Note xss_clean() does this automatically, if you use it. Example: $string = encode_php_tags($string);

CI_DB_query_builder::insert()

insert([$table = ''[, $set = NULL[, $escape = NULL]]]) Parameters: $table (string) – Table name $set (array) – An associative array of field/value pairs $escape (bool) – Whether to escape values and identifiers Returns: TRUE on success, FALSE on failure Return type: bool Compiles and executes an INSERT statement.

CI_DB_utility::list_databases()

list_databases() Returns: Array of database names found Return type: array Retrieve a list of all the database names.

CI_DB_query_builder::or_not_group_start()

or_not_group_start() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Starts a group expression, using OR NOTs for the conditions inside it.

CI_FTP::mkdir()

mkdir($path[, $permissions = NULL]) Parameters: $path (string) – Path to directory to create $permissions (int) – Permissions (octal) Returns: TRUE on success, FALSE on failure Return type: bool Lets you create a directory on your server. Supply the path ending in the folder name you wish to create, with a trailing slash. Permissions can be set by passing an octal value in the second parameter. // Creates a folder named "bar" $this->ftp->mkdir('/public_html/foo/bar/', 0755);

CI_Config::load()

load([$file = ''[, $use_sections = FALSE[, $fail_gracefully = FALSE]]]) Parameters: $file (string) – Configuration file name $use_sections (bool) – Whether config values shoud be loaded into their own section (index of the main config array) $fail_gracefully (bool) – Whether to return FALSE or to display an error message Returns: TRUE on success, FALSE on failure Return type: bool Loads a configuration file.

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_Form_validation::set_data()

set_data($data) Parameters: $data (array) – Array of data validate Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set an array for validation, instead of using the default $_POST array.