CI_DB_query_builder::not_like()

not_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]]) Parameters: $field (string) – Field name $match (string) – Text portion to match $side (string) – Which side of the expression to put the ‘%’ wildcard on $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a NOT LIKE clause to a query, separating multiple calls with AND.

CI_Calendar::adjust_date()

adjust_date($month, $year) Parameters: $month (int) – Month $year (int) – Year Returns: An associative array containing month and year Return type: array This method makes sure that you have a valid month/year. For example, if you submit 13 as the month, the year will increment and the month will become January: print_r($this->calendar->adjust_date(13, 2014)); outputs: Array ( [month] => '01' [year] => '2015' )

CI_Email::from()

from($from[, $name = ''[, $return_path = NULL]]) Parameters: $from (string) – “From” e-mail address $name (string) – “From” display name $return_path (string) – Optional email address to redirect undelivered e-mail to Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address and name of the person sending the email: $this->email->from('[email protected]', 'Your Name'); You can also set a Return-Path, to help redirect undelivered mail: $this-&

CI_FTP::delete_file()

delete_file($filepath) Parameters: $filepath (string) – Path to file to delete Returns: TRUE on success, FALSE on failure Return type: bool Lets you delete a file. Supply the source path with the file name. $this->ftp->delete_file('/public_html/joe/blog.html');

CI_DB_driver::list_fields()

list_fields($table) Parameters: $table (string) – The table name Returns: Array of field names or FALSE on failure Return type: array Gets a list of the field names in a table.

CI_DB_query_builder::or_not_like()

or_not_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]]) Parameters: $field (string) – Field name $match (string) – Text portion to match $side (string) – Which side of the expression to put the ‘%’ wildcard on $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a NOT LIKE clause to a query, separating multiple calls with OR.

heading()

heading([$data = ''[, $h = '1'[, $attributes = '']]]) Parameters: $data (string) – Content $h (string) – Heading level $attributes (mixed) – HTML attributes Returns: HTML heading tag Return type: string Lets you create HTML heading tags. The first parameter will contain the data, the second the size of the heading. Example: echo heading('Welcome!', 3); The above would produce: <h3>Welcome!</h3> Additionally, in order to add attributes to the heading tag such as HTML c

function_usable()

function_usable($function_name) Parameters: $function_name (string) – Function name Returns: TRUE if the function can be used, FALSE if not Return type: bool Returns TRUE if a function exists and is usable, FALSE otherwise. This function runs a function_exists() check and if the Suhosin extension <http://www.hardened-php.net/suhosin/> is loaded, checks if it doesn’t disable the function being checked. It is useful if you want to check for the availability of functions such as

is_php()

is_php($version) Parameters: $version (string) – Version number Returns: TRUE if the running PHP version is at least the one specified or FALSE if not Return type: bool Determines if the PHP version being used is greater than the supplied version number. Example: if (is_php('5.3')) { $str = quoted_printable_encode($str); } Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Returns FALSE if the installed version of P

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.