CI_DB_driver::escape_identifiers()

escape_identifiers($item) Parameters: $item (mixed) – The item or array of items to escape Returns: The input item(s), escaped Return type: mixed Escape SQL identifiers, such as column, table and names.

hash_pbkdf2()

hash_pbkdf2($algo, $password, $salt, $iterations[, $length = 0[, $raw_output = FALSE]]) Parameters: $algo (string) – Hashing algorithm $password (string) – Password $salt (string) – Hash salt $iterations (int) – Number of iterations to perform during derivation $length (int) – Output string length $raw_output (bool) – Whether to return raw binary data Returns: Password-derived key or FALSE on failure Return type: string For more information, please refer to the PHP manual for h

get_dir_file_info()

get_dir_file_info($source_dir, $top_level_only) Parameters: $source_dir (string) – Directory path $top_level_only (bool) – Whether to look only at the specified directory (excluding sub-directories) Returns: An array containing info on the supplied directory’s contents Return type: array Reads the specified directory and builds an array containing the filenames, filesize, dates, and permissions. Sub-folders contained within the specified path are only read if forced by sending the

CI_Calendar::default_template()

default_template() Returns: An array of template values Return type: array Sets the default template. This method is used when you have not created your own template.

CI_Form_validation::set_rules()

set_rules($field[, $label = ''[, $rules = '']]) Parameters: $field (string) – Field name $label (string) – Field label $rules (mixed) – Validation rules, as a string list separated by a pipe “|”, or as an array or rules Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set validation rules, as described in the tutorial sections above: Setting Validation Rules Saving Sets of Validation Rules to a Config File

CI_Session::set_flashdata()

set_flashdata($data[, $value = NULL]) Parameters: $data (mixed) – An array of key/value pairs to set as flashdata, or the key for a single item $value (mixed) – The value to set for a specific session item, if $data is a key Return type: void Assigns data to the $_SESSION superglobal and marks it as “flashdata”. Note This is a legacy method kept only for backwards compatibility with older applications.

CI_URI::total_rsegments()

total_rsegments() Returns: Count of routed URI segments Return type: int This method is identical to total_segments(), except that it returns the total number of segments in your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

CI_Security::xss_clean()

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.

CI_Unit_test::result()

result([$results = array()]) Parameters: $results (array) – Tests results list Returns: Array of raw result data Return type: array Returns raw tests results data.

CI_Migration::version()

version($target_version) Parameters: $target_version (mixed) – Migration version to process Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Version can be used to roll back changes or step forwards programmatically to specific versions. It works just like current() but ignores $config['migration_version']. $this->migration->version(5);