CI_Migration

class CI_Migration current() Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Migrates up to the current version (whatever is set for $config['migration_version'] in application/config/migration.php). error_string() Returns: Error messages Return type: string This returns a string of errors that were detected while performing a migration. find_migrations() Returns: An array of migration files Return type: array An

CI_Xmlrpc

class CI_Xmlrpc initialize([$config = array()]) Parameters: $config (array) – Configuration data Return type: void Initializes the XML-RPC library. Accepts an associative array containing your settings. server($url[, $port = 80[, $proxy = FALSE[, $proxy_port = 8080]]]) Parameters: $url (string) – XML-RPC server URL $port (int) – Server port $proxy (string) – Optional proxy $proxy_port (int) – Proxy listening port Return type: void Sets the URL and port number of the ser

CI_DB_query_builder::select_min()

select_min([$select = ''[, $alias = '']]) Parameters: $select (string) – Field to compute the minimum of $alias (string) – Alias for the resulting value name Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a SELECT MIN(field) clause to a query.

auto_typography()

auto_typography($str[, $reduce_linebreaks = FALSE]) Parameters: $str (string) – Input string $reduce_linebreaks (bool) – Whether to reduce multiple instances of double newlines to two Returns: HTML-formatted typography-safe string Return type: string Formats text so that it is semantically and typographically correct HTML. This function is an alias for CI_Typography::auto_typography(). For more info, please see the Typography Library documentation. Usage example: $string = auto_typ

CI_Calendar::generate()

generate([$year = ''[, $month = ''[, $data = array()]]]) Parameters: $year (int) – Year $month (int) – Month $data (array) – Data to be shown in the calendar cells Returns: HTML-formatted calendar Return type: string Generate the calendar.

mailto()

mailto($email, $title = '', $attributes = '') Parameters: $email (string) – E-mail address $title (string) – Anchor title $attributes (mixed) – HTML attributes Returns: A “mail to” hyperlink Return type: string Creates a standard HTML e-mail link. Usage example: echo mailto('[email protected]', 'Click Here to Contact Me'); As with the anchor() tab above, you can set attributes using the third parameter: $attributes = array('title' => 'Mail me'); echo mailto('[email protected]'

CI_Calendar::adjust_date()

adjust_date($month, $year) Parameters: $month (int) – Month $year (int) – Year Returns: An associative array containing month and year Return type: array This method makes sure that you have a valid month/year. For example, if you submit 13 as the month, the year will increment and the month will become January: print_r($this->calendar->adjust_date(13, 2014)); outputs: Array ( [month] => '01' [year] => '2015' )

delete_files()

delete_files($path[, $del_dir = FALSE[, $htdocs = FALSE]]) Parameters: $path (string) – Directory path $del_dir (bool) – Whether to also delete directories $htdocs (bool) – Whether to skip deleting .htaccess and index page files Returns: TRUE on success, FALSE in case of an error Return type: bool Deletes ALL files contained in the supplied path. Example: delete_files('./path/to/directory/'); If the second parameter is set to TRUE, any directories contained within the supplied ro

xss_clean()

xss_clean($str[, $is_image = FALSE]) Parameters: $str (string) – Input data $is_image (bool) – Whether we’re dealing with an image Returns: XSS-clean string Return type: string Provides Cross Site Script Hack filtering. This function is an alias for CI_Input::xss_clean(). For more info, please see the Input Library documentation.

CI_URI::slash_rsegment()

slash_rsegment($n[, $where = 'trailing']) Parameters: $n (int) – Segment index number $where (string) – Where to add the slash (‘trailing’ or ‘leading’) Returns: Routed segment value, prepended/suffixed with a forward slash, or a slash if not found Return type: string This method is identical to slash_segment(), except that it lets you add slashes a specific segment from your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.