CI_DB_driver::total_queries()

total_queries() Returns: The total number of queries executed Return type: int Returns the total number of queries that have been executed so far.

CI_DB_result::row_object()

row_object([$n = 0]) Parameters: $n (int) – Index of the query results row to be returned Returns: The requested row or NULL if it doesn’t exist Return type: stdClass Returns the requested result row as an object of type stdClass. Usage: see Result Rows.

CI_Upload

class CI_Upload initialize([array $config = array()[, $reset = TRUE]]) Parameters: $config (array) – Preferences $reset (bool) – Whether to reset preferences (that are not provided in $config) to their defaults Returns: CI_Upload instance (method chaining) Return type: CI_Upload do_upload([$field = 'userfile']) Parameters: $field (string) – Name of the form field Returns: TRUE on success, FALSE on failure Return type: bool Performs the upload based on the preferences

CI_Loader::add_package_path()

add_package_path($path[, $view_cascade = TRUE]) Parameters: $path (string) – Path to add $view_cascade (bool) – Whether to use cascading views Returns: CI_Loader instance (method chaining) Return type: CI_Loader Adding a package path instructs the Loader class to prepend a given path for subsequent requests for resources. As an example, the “Foo Bar” application package above has a library named Foo_bar.php. In our controller, we’d do the following: $this->load->add_package_p

CI_DB_driver::escape_str()

escape_str($str[, $like = FALSE]) Parameters: $str (mixed) – A string value or array of multiple ones $like (bool) – Whether or not the string will be used in a LIKE condition Returns: The escaped string(s) Return type: mixed Escapes string values. Warning The returned strings do NOT include quotes around them.

CI_DB_driver::protect_identifiers()

protect_identifiers($item[, $prefix_single = FALSE[, $protect_identifiers = NULL[, $field_exists = TRUE]]]) Parameters: $item (string) – The item to work with $prefix_single (bool) – Whether to apply the dbprefix even if the input item is a single identifier $protect_identifiers (bool) – Whether to quote identifiers $field_exists (bool) – Whether the supplied item contains a field name or not Returns: The modified item Return type: string Takes a column or table name (optionally

site_url()

site_url([$uri = ''[, $protocol = NULL]]) Parameters: $uri (string) – URI string $protocol (string) – Protocol, e.g. ‘http’ or ‘https’ Returns: Site URL Return type: string Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the URL, as will any URI segments you pass to the function, plus the url_suffix as set in your config file. You are encouraged to use this function a

Reserved Names

In order to help out, CodeIgniter uses a series of function, method, class and variable names in its operation. Because of this, some names cannot be used by a developer. Following is a list of reserved names that cannot be used. Controller names Since your controller classes will extend the main application controller you must be careful not to name your methods identically to the ones used by that class, otherwise your local methods will override them. The following is a list of reserved name

CI_Zip::add_dir()

add_dir($directory) Parameters: $directory (mixed) – Directory name string or an array of multiple directories Return type: void Permits you to add a directory. Usually this method is unnecessary since you can place your data into directories when using $this->zip->add_data(), but if you would like to create an empty directory you can do so: $this->zip->add_dir('myfolder'); // Creates a directory called "myfolder"

CI_Migration::current()

current() Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Migrates up to the current version (whatever is set for $config['migration_version'] in application/config/migration.php).