CI_Cache::decrement()

decrement($id[, $offset = 1]) Parameters: $id (string) – Cache ID $offset (int) – Step/value to reduce by Returns: New value on success, FALSE on failure Return type: mixed Performs atomic decrementation of a raw stored value. // 'iterator' has a value of 6 $this->cache->decrement('iterator'); // 'iterator' is now 5 $this->cache->decrement('iterator', 2); // 'iterator' is now 3

config_item()

config_item($key) Parameters: $key (string) – Config item key Returns: Configuration key value or NULL if not found Return type: mixed The Config Library is the preferred way of accessing configuration information, however config_item() can be used to retrieve single keys. See Config Library documentation for more information.

CI_DB_driver::cache_delete_all()

cache_delete_all() Returns: TRUE on success, FALSE on failure Return type: bool Delete all cache files.

CI_Pagination::create_links()

create_links() Returns: HTML-formatted pagination Return type: string Returns a “pagination” bar, containing the generated links or an empty string if there’s just a single page.

force_download()

force_download([$filename = ''[, $data = ''[, $set_mime = FALSE]]]) Parameters: $filename (string) – Filename $data (mixed) – File contents $set_mime (bool) – Whether to try to send the actual MIME type Return type: void Generates server headers which force data to be downloaded to your desktop. Useful with file downloads. The first parameter is the name you want the downloaded file to be named, the second parameter is the file data. If you set the second parameter to NULL and $file

form_close()

form_close([$extra = '']) Parameters: $extra (string) – Anything to append after the closing tag, as is Returns: An HTML form closing tag Return type: string Produces a closing </form> tag. The only advantage to using this function is it permits you to pass data to it which will be added below the tag. For example: $string = '</div></div>'; echo form_close($string); // Would produce: </form> </div></div>

CI_DB_result::first_row()

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

CI_DB_driver::simple_query()

simple_query($sql) Parameters: $sql (string) – The SQL statement to execute Returns: Whatever the underlying driver’s “query” function returns Return type: mixed A simplified version of the query() method, appropriate for use when you don’t need to get a result object or to just send a query to the database and not care for the result.

password_verify()

password_verify($password, $hash) Parameters: $password (string) – Plain-text password $hash (string) – Password hash Returns: TRUE if the password matches the hash, FALSE if not Return type: bool For more information, please refer to the PHP manual for password_verify().

CI_Image_lib::display_errors()

display_errors([$open = ' [, $close = ' ']]) Parameters: $open (string) – Error message opening tag $close (string) – Error message closing tag Returns: Error messages Return type: string Returns all detected errors formatted as a string. echo $this->image_lib->display_errors();