CI_Pagination::create_links()

create_links() Returns: HTML-formatted pagination Return type: string Returns a “pagination” bar, containing the generated links or an empty string if there’s just a single page.

CI_DB_driver::cache_delete_all()

cache_delete_all() Returns: TRUE on success, FALSE on failure Return type: bool Delete all cache files.

CI_DB_driver::count_all()

count_all([$table = '']) Parameters: $table (string) – Table name Returns: Row count for the specified table Return type: int Returns the total number of rows in a table, or 0 if no table was provided.

config_item()

config_item($key) Parameters: $key (string) – Config item key Returns: Configuration key value or NULL if not found Return type: mixed The Config Library is the preferred way of accessing configuration information, however config_item() can be used to retrieve single keys. See Config Library documentation for more information.

CI_Cache::decrement()

decrement($id[, $offset = 1]) Parameters: $id (string) – Cache ID $offset (int) – Step/value to reduce by Returns: New value on success, FALSE on failure Return type: mixed Performs atomic decrementation of a raw stored value. // 'iterator' has a value of 6 $this->cache->decrement('iterator'); // 'iterator' is now 5 $this->cache->decrement('iterator', 2); // 'iterator' is now 3

CI_Calendar::get_month_name()

get_month_name($month) Parameters: $month (int) – Month Returns: Month name Return type: string Generates a textual month name based on the numeric month provided.

CI_Calendar::get_day_names()

get_day_names($day_type = '') Parameters: $day_type (string) – ‘long’, ‘short’, or ‘abr’ Returns: Array of day names Return type: array Returns an array of day names (Sunday, Monday, etc.) based on the type provided. Options: long, short, abr. If no $day_type is provided (or if an invalid type is provided) this method will return the “abbreviated” style.

CI_DB_utility::optimize_database()

optimize_database() Returns: Array of optimization messages or FALSE on failure Return type: array Optimizes the database.

CI_DB_forge::modify_column()

modify_column($table, $field) Parameters: $table (string) – Table name $field (array) – Column definition(s) Returns: TRUE on success, FALSE on failure Return type: bool Modifies a table column. Usage: See Modifying a Column in a Table.

CI_DB_driver::trans_complete()

trans_complete() Returns: TRUE on success, FALSE on failure Return type: bool Complete Transaction.