set_radio()

set_radio($field[, $value = ''[, $default = FALSE]]) Parameters: $field (string) – Field name $value (string) – Value to check for $default (string) – Whether the value is also a default one Returns: ‘checked’ attribute or an empty string Return type: string Permits you to display radio buttons in the state they were submitted. This function is identical to the set_checkbox() function above. Example: <input type="radio" name="myradio" value="1" <?php echo set_radio('myradio

get_filenames()

get_filenames($source_dir[, $include_path = FALSE]) Parameters: $source_dir (string) – Directory path $include_path (bool) – Whether to include the path as part of the filenames Returns: An array of file names Return type: array Takes a server path as input and returns an array containing the names of all files contained within it. The file path can optionally be added to the file names by setting the second parameter to TRUE. Example: $controllers = get_filenames(APPPATH.'controll

CI_DB_query_builder::get_where()

get_where([$table = ''[, $where = NULL[, $limit = NULL[, $offset = NULL]]]]) Parameters: $table (mixed) – The table(s) to fetch data from; string or array $where (string) – The WHERE clause $limit (int) – The LIMIT clause $offset (int) – The OFFSET clause Returns: CI_DB_result instance (method chaining) Return type: CI_DB_result Same as get(), but also allows the WHERE to be added directly.

form_reset()

form_reset([$data = ''[, $value = ''[, $extra = '']]]) Parameters: $data (string) – Button name $value (string) – Button value $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML input reset button tag Return type: string Lets you generate a standard reset button. Use is identical to form_submit().

CI_Encryption

class CI_Encryption initialize($params) Parameters: $params (array) – Configuration parameters Returns: CI_Encryption instance (method chaining) Return type: CI_Encryption Initializes (configures) the library to use a different driver, cipher, mode or key. Example: $this->encryption->initialize( array('mode' => 'ctr') ); Please refer to the Configuring the library section for detailed info. encrypt($data[, $params = NULL]) Parameters: $data (string) – Data

CI_Parser::parse()

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.

encode_php_tags()

encode_php_tags($str) Parameters: $str (string) – Input string Returns: Safely formatted string Return type: string This is a security function that converts PHP tags to entities. Note xss_clean() does this automatically, if you use it. Example: $string = encode_php_tags($string);

CI_DB_query_builder::insert()

insert([$table = ''[, $set = NULL[, $escape = NULL]]]) Parameters: $table (string) – Table name $set (array) – An associative array of field/value pairs $escape (bool) – Whether to escape values and identifiers Returns: TRUE on success, FALSE on failure Return type: bool Compiles and executes an INSERT statement.

CI_DB_utility::list_databases()

list_databases() Returns: Array of database names found Return type: array Retrieve a list of all the database names.

CI_DB_query_builder::or_not_group_start()

or_not_group_start() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Starts a group expression, using OR NOTs for the conditions inside it.