get_clickable_smileys()

get_clickable_smileys($image_url[, $alias = ''[, $smileys = NULL]]) Parameters: $image_url (string) – URL path to the smileys directory $alias (string) – Field alias Returns: An array of ready to use smileys Return type: array Returns an array containing your smiley images wrapped in a clickable link. You must supply the URL to your smiley folder and a field id or field alias. Example: $image_array = get_clickable_smileys('http://example.com/images/smileys/', 'comment');

CI_Output

class CI_Output $parse_exec_vars = TRUE; Enables/disables parsing of the {elapsed_time} and {memory_usage} pseudo-variables. CodeIgniter will parse those tokens in your output by default. To disable this, set this property to FALSE in your controller. $this->output->parse_exec_vars = FALSE; set_output($output) Parameters: $output (string) – String to set the output to Returns: CI_Output instance (method chaining) Return type: CI_Output Permits you to manually set the f

CI_Session::set_flashdata()

set_flashdata($data[, $value = NULL]) Parameters: $data (mixed) – An array of key/value pairs to set as flashdata, or the key for a single item $value (mixed) – The value to set for a specific session item, if $data is a key Return type: void Assigns data to the $_SESSION superglobal and marks it as “flashdata”. Note This is a legacy method kept only for backwards compatibility with older applications.

valid_email()

valid_email($email) Parameters: $email (string) – E-mail address Returns: TRUE if a valid email is supplied, FALSE otherwise Return type: bool Checks if the input is a correctly formatted e-mail address. Note that is doesn’t actually prove that the address will be able recieve mail, but simply that it is a validly formed address. Example: if (valid_email('[email protected]')) { echo 'email is valid'; } else { echo 'email is not valid'; } Note All that this function

CI_Session::sess_regenerate()

sess_regenerate([$destroy = FALSE]) Parameters: $destroy (bool) – Whether to destroy session data Return type: void Regenerate session ID, optionally destroying the current session’s data. Note This method is just an alias for PHP’s native session_regenerate_id() function.

CI_Unit_test::result()

result([$results = array()]) Parameters: $results (array) – Tests results list Returns: Array of raw result data Return type: array Returns raw tests results data.

CI_Migration::version()

version($target_version) Parameters: $target_version (mixed) – Migration version to process Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Version can be used to roll back changes or step forwards programmatically to specific versions. It works just like current() but ignores $config['migration_version']. $this->migration->version(5);

CI_DB_query_builder::set_insert_batch()

set_insert_batch($key[, $value = ''[, $escape = NULL]]) Parameters: $key (mixed) – Field name or an array of field/value pairs $value (string) – Field value, if $key is a single field $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds field/value pairs to be inserted in a table later via insert_batch().

CI_DB_query_builder::order_by()

order_by($orderby[, $direction = ''[, $escape = NULL]]) Parameters: $orderby (string) – Field to order by $direction (string) – The order requested - ASC, DESC or random $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds an ORDER BY clause to a query.

CI_DB_query_builder::or_like()

or_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]]) Parameters: $field (string) – Field name $match (string) – Text portion to match $side (string) – Which side of the expression to put the ‘%’ wildcard on $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a LIKE clause to a query, separating multiple class with OR.