singular()

singular($str) Parameters: $str (string) – Input string Returns: A singular word Return type: string Changes a plural word to singular. Example: echo singular('dogs'); // Prints 'dog'

log_message()

log_message($level, $message) Parameters: $level (string) – Log level: ‘error’, ‘debug’ or ‘info’ $message (string) – Message to log Return type: void This function lets you write messages to your log files. You must supply one of three “levels” in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter. Example: if ($some_var == '') { log_message('error', 'Some variable did not contain a value.'); } els

CI_Loader::language()

language($files[, $lang = '']) Parameters: $files (mixed) – Language file name or an array of multiple language files $lang (string) – Language name Returns: CI_Loader instance (method chaining) Return type: CI_Loader This method is an alias of the language loading method: $this->lang->load().

CI_Calendar::get_total_days()

get_total_days($month, $year) Parameters: $month (int) – Month $year (int) – Year Returns: Count of days in the specified month Return type: int Total days in a given month: echo $this->calendar->get_total_days(2, 2012); // 29 Note This method is an alias for Date Helper function days_in_month().

is_php()

is_php($version) Parameters: $version (string) – Version number Returns: TRUE if the running PHP version is at least the one specified or FALSE if not Return type: bool Determines if the PHP version being used is greater than the supplied version number. Example: if (is_php('5.3')) { $str = quoted_printable_encode($str); } Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Returns FALSE if the installed version of P

form_checkbox()

form_checkbox([$data = ''[, $value = ''[, $checked = FALSE[, $extra = '']]]]) Parameters: $data (array) – Field attributes data $value (string) – Field value $checked (bool) – Whether to mark the checkbox as being checked $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML checkbox input tag Return type: string Lets you generate a checkbox field. Simple example: echo form_checkbox('newsletter', 'accept', TRUE); // Woul

CI_DB_query_builder::join()

join($table, $cond[, $type = ''[, $escape = NULL]]) Parameters: $table (string) – Table name to join $cond (string) – The JOIN ON condition $type (string) – The JOIN type $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a JOIN clause to a query.

CI_Config::system_url()

system_url() Returns: URL pointing at your CI system/ directory Return type: string This method retrieves the URL to your CodeIgniter system/ directory. Note This method is DEPRECATED because it encourages usage of insecure coding practices. Your system/ directory shouldn’t be publicly accessible.

CI_DB_result::next_row()

next_row([$type = 'object']) Parameters: $type (string) – Type of the requested result - array, object, or class name Returns: Next row of result set, or NULL if it doesn’t exist Return type: mixed Returns the next row from the result set.

CI_DB_utility::csv_from_result()

csv_from_result($query[, $delim = ', '[, $newline = "n"[, $enclosure = '"']]]) Parameters: $query (object) – A database result object $delim (string) – The CSV field delimiter to use $newline (string) – The newline character to use $enclosure (string) – The enclosure delimiter to use Returns: The generated CSV file as a string Return type: string Translates a database result object into a CSV document.