local_to_gmt()

local_to_gmt([$time = '']) Parameters: $time (int) – UNIX timestamp Returns: UNIX timestamp Return type: int Takes a UNIX timestamp as input and returns it as GMT. Example: $gmt = local_to_gmt(time());

CI_DB_query_builder::having()

having($key[, $value = NULL[, $escape = NULL]]) Parameters: $key (mixed) – Identifier (string) or associative array of field/value pairs $value (string) – Value sought if $key is an identifier $escape (string) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a HAVING clause to a query, separating multiple calls with AND.

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_DB_forge::add_column()

add_column($table[, $field = array()[, $_after = NULL]]) Parameters: $table (string) – Table name to add the column to $field (array) – Column definition(s) $_after (string) – Column for AFTER clause (deprecated) Returns: TRUE on success, FALSE on failure Return type: bool Adds a column to a table. Usage: See Adding a Column to a Table.

CI_DB_result::result()

result([$type = 'object']) Parameters: $type (string) – Type of requested results - array, object, or class name Returns: Array containing the fetched rows Return type: array A wrapper for the result_array(), result_object() and custom_result_object() methods. Usage: see Result Arrays.

CI_DB_forge::add_field()

add_field($field) Parameters: $field (array) – Field definition to add Returns: CI_DB_forge instance (method chaining) Return type: CI_DB_forge Adds a field to the set that will be used to create a table. Usage: See Adding fields.

get_instance()

get_instance() Returns: Reference to your controller’s instance Return type: CI_Controller

CI_DB_driver::cache_set_path()

cache_set_path([$path = '']) Parameters: $path (string) – Path to the cache directory Return type: void Sets the directory path to use for caching storage.

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_User_agent::accept_lang()

accept_lang([$lang = 'en']) Parameters: $lang (string) – Language key Returns: TRUE if provided language is accepted, FALSE if not Return type: bool Lets you determine if the user agent accepts a particular language. Example: if ($this->agent->accept_lang('en')) { echo 'You accept English!'; } Note This method is not typically very reliable since some browsers do not provide language info, and even among those that do, it is not always accurate.