CI_DB_driver::close()

close() Return type: void Close the DB Connection.

CI_DB_driver::cache_off()

cache_off() Returns: TRUE if caching is on, FALSE if not Return type: bool Disable database results caching.

CI_DB_utility::optimize_table()

optimize_table($table_name) Parameters: $table_name (string) – Name of the table to optimize Returns: Array of optimization messages or FALSE on failure Return type: array Optimizes a database table.

CI_DB_driver::list_tables()

list_tables([$constrain_by_prefix = FALSE]) Parameters: $constrain_by_prefix (bool) – TRUE to match table names by the configured dbprefix Returns: Array of table names or FALSE on failure Return type: array Gets a list of the tables in the current database.

CI_Encrypt

class CI_Encrypt encode($string[, $key = '']) Parameters: $string (string) – Data to encrypt $key (string) – Encryption key Returns: Encrypted string Return type: string Performs the data encryption and returns it as a string. Example: $msg = 'My secret message'; $encrypted_string = $this->encrypt->encode($msg); You can optionally pass your encryption key via the second parameter if you don’t want to use the one in your config file: $msg = 'My secret message'; $key = 'supe

CI_Session::unset_userdata()

unset_userdata($key) Parameters: $key (mixed) – Key for the session data item to unset, or an array of multiple keys Return type: void Unsets the specified key(s) from the $_SESSION superglobal. Note This is a legacy method kept only for backwards compatibility with older applications. It is just an alias for unset($_SESSION[$key]) - please use that instead.

Javascript Class

CodeIgniter provides a library to help you with certain common functions that you may want to use with Javascript. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it. Important This library is DEPRECATED and should not be used. It has always been with an ‘experimental’ status and is now no longer supported. Currently only kept for backward

CI_DB_query_builder::replace()

replace([$table = ''[, $set = NULL]]) Parameters: $table (string) – Table name $set (array) – An associative array of field/value pairs Returns: TRUE on success, FALSE on failure Return type: bool Compiles and executes a REPLACE statement.

CI_URI

class CI_URI segment($n[, $no_result = NULL]) Parameters: $n (int) – Segment index number $no_result (mixed) – What to return if the searched segment is not found Returns: Segment value or $no_result value if not found Return type: mixed Permits you to retrieve a specific segment. Where n is the segment number you wish to retrieve. Segments are numbered from left to right. For example, if your full URL is this: http://example.com/index.php/news/local/metro/crime_is_up The segment

CI_Cache::clean()

clean() Returns: TRUE on success, FALSE on failure Return type: bool This method will ‘clean’ the entire cache. If the deletion of the cache files fails, the method will return FALSE. $this->cache->clean();