CI_Typography

class CI_Typography $protect_braced_quotes = FALSE When using the Typography library in conjunction with the Template Parser library it can often be desirable to protect single and double quotes within curly braces. To enable this, set the protect_braced_quotes class property to TRUE. Usage example: $this->load->library('typography'); $this->typography->protect_braced_quotes = TRUE; format_characters($str) Parameters: $str (string) – Input string Returns: Formatted

CI_User_agent::mobile()

mobile() Returns: Detected mobile device brand or an empty string Return type: string Returns a string containing the name of the mobile device viewing your site.

CI_Cart::total_items()

total_items() Returns: Total amount of items in the cart Return type: int Displays the total number of items in the cart.

strip_quotes()

strip_quotes($str) Parameters: $str (string) – Input string Returns: String with quotes stripped Return type: string Removes single and double quotes from a string. Example: $string = "Joe's \"dinner\""; $string = strip_quotes($string); //results in "Joes dinner"

quotes_to_entities()

quotes_to_entities($str) Parameters: $str (string) – Input string Returns: String with quotes converted to HTML entities Return type: string Converts single and double quotes in a string to the corresponding HTML entities. Example: $string = "Joe's \"dinner\""; $string = quotes_to_entities($string); //results in "Joe's "dinner""

highlight_code()

highlight_code($str) Parameters: $str (string) – Input string Returns: String with code highlighted via HTML Return type: string Colorizes a string of code (PHP, HTML, etc.). Example: $string = highlight_code($string); The function uses PHP’s highlight_string() function, so the colors used are the ones specified in your php.ini file.

Application Flow Chart

The following graphic illustrates how data flows throughout the system: The index.php serves as the front controller, initializing the base resources needed to run CodeIgniter. The Router examines the HTTP request to determine what should be done with it. If a cache file exists, it is sent directly to the browser, bypassing the normal system execution. Security. Before the application controller is loaded, the HTTP request and any user submitted data is filtered for security. The Controller lo

CI_Session::get_temp_keys()

get_temp_keys() Returns: Array containing the keys of all “tempdata” items. Return type: array Gets a list of all $_SESSION that have been marked as “tempdata”.

CI_Loader::remove_package_path()

remove_package_path([$path = '']) Parameters: $path (string) – Path to remove Returns: CI_Loader instance (method chaining) Return type: CI_Loader When your controller is finished using resources from an application package, and particularly if you have other application packages you want to work with, you may wish to remove the package path so the Loader no longer looks in that directory for resources. To remove the last path added, simply call the method with no parameters. Or to

CI_FTP::upload()

upload($locpath, $rempath[, $mode = 'auto'[, $permissions = NULL]]) Parameters: $locpath (string) – Local file path $rempath (string) – Remote file path $mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’) $permissions (int) – File permissions (octal) Returns: TRUE on success, FALSE on failure Return type: bool Uploads a file to your server. You must supply the local path and the remote path, and you can optionally set the mode and permissions. E