CI_DB_query_builder::or_where_in()

or_where_in([$key = NULL[, $values = NULL[, $escape = NULL]]]) Parameters: $key (string) – The field to search $values (array) – The values searched on $escape (bool) – Whether to escape values and identifiers Returns: DB_query_builder instance Return type: object Generates a WHERE field IN(‘item’, ‘item’) SQL query, joined with ‘OR’ if appropriate.

CI_DB_driver::is_write_type()

is_write_type($sql) Parameters: $sql (string) – The SQL statement Returns: TRUE if the SQL statement is of “write type”, FALSE if not Return type: bool Determines if a query is of a “write” type (such as INSERT, UPDATE, DELETE) or “read” type (i.e. SELECT).

CI_Loader::helper()

helper($helpers) Parameters: $helpers (mixed) – Helper name as a string or an array containing multiple helpers Returns: CI_Loader instance (method chaining) Return type: CI_Loader This method loads helper files, where file_name is the name of the file, without the _helper.php extension.

CI_Session::set_userdata()

set_userdata($data[, $value = NULL]) Parameters: $data (mixed) – An array of key/value pairs to set as session data, 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. Note This is a legacy method kept only for backwards compatibility with older applications.

character_limiter()

character_limiter($str[, $n = 500[, $end_char = '…']]) Parameters: $str (string) – Input string $n (int) – Number of characters $end_char (string) – End character (usually an ellipsis) Returns: Character-limited string Return type: string Truncates a string to the number of characters specified. It maintains the integrity of words so the character count may be slightly more or less than what you specify. Example: $string = "Here is a nice text string consisting of eleven words.";

CI_User_agent::robot()

robot() Returns: Detected robot name or an empty string Return type: string Returns a string containing the name of the robot viewing your site.

auto_link()

auto_link($str, $type = 'both', $popup = FALSE) Parameters: $str (string) – Input string $type (string) – Link type (‘email’, ‘url’ or ‘both’) $popup (bool) – Whether to create popup links Returns: Linkified string Return type: string Automatically turns URLs and e-mail addresses contained in a string into links. Example: $string = auto_link($string); The second parameter determines whether URLs and e-mails are converted or just one or the other. Default behavior is both if the p

CI_URI::total_segments()

total_segments() Returns: Count of URI segments Return type: int Returns the total number of segments.

xml_convert()

xml_convert($str[, $protect_all = FALSE]) Parameters: $str (string) – the text string to convert $protect_all (bool) – Whether to protect all content that looks like a potential entity instead of just numbered entities, e.g. &foo; Returns: XML-converted string Return type: string Takes a string as input and converts the following reserved XML characters to entities: Ampersands: & Less than and greater than characters: < > Single and double quotes: ‘ “ Dashes: - This

CI_Zip::add_dir()

add_dir($directory) Parameters: $directory (mixed) – Directory name string or an array of multiple directories Return type: void Permits you to add a directory. Usually this method is unnecessary since you can place your data into directories when using $this->zip->add_data(), but if you would like to create an empty directory you can do so: $this->zip->add_dir('myfolder'); // Creates a directory called "myfolder"