CI_DB_query_builder::group_end()

group_end() Returns: DB_query_builder instance Return type: object Ends a group expression.

now()

now([$timezone = NULL]) Parameters: $timezone (string) – Timezone Returns: UNIX timestamp Return type: int Returns the current time as a UNIX timestamp, referenced either to your server’s local time or any PHP suported timezone, based on the “time reference” setting in your config file. If you do not intend to set your master time reference to any other PHP supported timezone (which you’ll typically do if you run a site that lets each user set their own timezone settings) there is n

Database Reference

CodeIgniter comes with a full-featured and very fast abstracted database class that supports both traditional structures and Query Builder patterns. The database functions offer clear, simple syntax. Quick Start: Usage Examples Database Configuration Connecting to a Database Running Queries Generating Query Results Query Helper Functions Query Builder Class Transactions Getting MetaData Custom Function Calls Query Caching Database Manipulation with Database Forge Databa

CI_DB_driver::platform()

platform() Returns: Platform name Return type: string The name of the platform in use (mysql, mssql, etc...).

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_Trackback::limit_characters()

limit_characters($str[, $n = 500[, $end_char = '…']]) Parameters: $str (string) – Input string $n (int) – Max characters number $end_char (string) – Character to put at end of string Returns: Shortened string Return type: string Limits the string based on the character count. Will preserve complete words.

CI_Loader::library()

library($library[, $params = NULL[, $object_name = NULL]]) Parameters: $library (mixed) – Library name as a string or an array with multiple libraries $params (array) – Optional array of parameters to pass to the loaded library’s constructor $object_name (string) – Optional object name to assign the library to Returns: CI_Loader instance (method chaining) Return type: CI_Loader This method is used to load core classes. Note We use the terms “class” and “library” interchangeably.

CI_Email

class CI_Email from($from[, $name = ''[, $return_path = NULL]]) Parameters: $from (string) – “From” e-mail address $name (string) – “From” display name $return_path (string) – Optional email address to redirect undelivered e-mail to Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address and name of the person sending the email: $this->email->from('[email protected]', 'Your Name'); You can also set a Return-Path, to help redirect undeliver

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”.

CI_Unit_test::active()

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