CI_DB_query_builder::get_compiled_delete()

get_compiled_delete([$table = ''[, $reset = TRUE]]) Parameters: $table (string) – Table name $reset (bool) – Whether to reset the current QB values or not Returns: The compiled SQL statement as a string Return type: string Compiles a DELETE statement and returns it as a string.

CI_DB_query_builder::where()

where($key[, $value = NULL[, $escape = NULL]]) Parameters: $key (mixed) – Name of field to compare, or associative array $value (mixed) – If a single key, compared to this value $escape (bool) – Whether to escape values and identifiers Returns: DB_query_builder instance Return type: object Generates the WHERE portion of the query. Separates multiple calls with ‘AND’.

Running via the CLI

As well as calling an applications Controllers via the URL in a browser they can also be loaded via the command-line interface (CLI). Page Contents Running via the CLIWhat is the CLI? Why run via the command-line? Let’s try it: Hello World! That’s it! What is the CLI? The command-line interface is a text-based method of interacting with computers. For more information, check the Wikipedia article. Why run via the command-line? There are many reasons for running CodeIgniter from the command-

CI_Unit_test::active()

active([$state = TRUE]) Parameters: $state (bool) – Whether to enable testing Return type: void Enables/disables unit testing.

CI_Session::mark_as_temp()

mark_as_temp($key[, $ttl = 300]) Parameters: $key (mixed) – Key to mark as tempdata, or an array of multiple keys $ttl (int) – Time-to-live value for the tempdata, in seconds Returns: TRUE on success, FALSE on failure Return type: bool Marks a $_SESSION item key (or multiple ones) as “tempdata”.

Creating Core System Classes

Every time CodeIgniter runs there are several base classes that are initialized automatically as part of the core framework. It is possible, however, to swap any of the core system classes with your own versions or even extend the core versions. Most users will never have any need to do this, but the option to replace or extend them does exist for those who would like to significantly alter the CodeIgniter core. Note Messing with a core system class has a lot of implications, so make sure you

CI_DB_driver::last_query()

last_query() Returns: The last query executed Return type: string Returns the last query that was executed.

CI_DB_query_builder::reset_query()

reset_query() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Resets the current Query Builder state. Useful when you want to build a query that can be cancelled under certain conditions.

CI_DB_driver::field_exists()

field_exists($field_name, $table_name) Parameters: $table_name (string) – The table name $field_name (string) – The field name Returns: TRUE if that field exists in that table, FALSE if not Return type: bool Determine if a particular field exists.

CI_User_agent::charsets()

charsets() Returns: An array list of accepted character sets Return type: array Returns an array of character sets accepted by the user agent.