mysql_to_unix()

mysql_to_unix([$time = '']) Parameters: $time (string) – MySQL timestamp Returns: UNIX timestamp Return type: int Takes a MySQL Timestamp as input and returns it as a UNIX timestamp. Example: $unix = mysql_to_unix('20061124092345');

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.

CI_DB_driver::display_error()

display_error([$error = ''[, $swap = ''[, $native = FALSE]]]) Parameters: $error (string) – The error message $swap (string) – Any “swap” values $native (bool) – Whether to localize the message Return type: void Returns: Displays the DB error screensends the application/views/errors/error_db.php template Return type: string Display an error message and stop script execution. The message is displayed using the application/views/errors/error_db.php template.

CI_Xmlrpc::request()

request($incoming) Parameters: $incoming (array) – Request data Return type: void Takes an array of data and builds request to be sent to XML-RPC server: $request = array(array('My Photoblog', 'string'), 'http://www.yoursite.com/photoblog/'); $this->xmlrpc->request($request);

CI_DB_query_builder::count_all_results()

count_all_results([$table = ''[, $reset = TRUE]]) Parameters: $table (string) – Table name $reset (bool) – Whether to reset values for SELECTs Returns: Number of rows in the query result Return type: int Generates a platform-specific query string that counts all records returned by an Query Builder query.

quoted_printable_encode()

quoted_printable_encode($str) Parameters: $str (string) – Input string Returns: 8bit-encoded string Return type: string For more information, please refer to the PHP manual for quoted_printable_encode().

CI_URI::ruri_to_assoc()

ruri_to_assoc([$n = 3[, $default = array()]]) Parameters: $n (int) – Segment index number $default (array) – Default values Returns: Associative routed URI segments array Return type: array This method is identical to uri_to_assoc(), except that it creates an associative array using the re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

CI_DB_query_builder::group_by()

group_by($by[, $escape = NULL]) Parameters: $by (mixed) – Field(s) to group by; string or array Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a GROUP BY clause to a query.

Web Page Caching

CodeIgniter lets you cache your pages in order to achieve maximum performance. Although CodeIgniter is quite fast, the amount of dynamic information you display in your pages will correlate directly to the server resources, memory, and processing cycles utilized, which affect your page load speeds. By caching your pages, since they are saved in their fully rendered state, you can achieve performance that nears that of static web pages. How Does Caching Work? Caching can be enabled on a per-page

CI_Parser

class CI_Parser parse($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string Parses a template from the provided path and variables. parse_string($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only re