is_countable()

is_countable($word) Parameters: $word (string) – Input string Returns: TRUE if the word is countable or FALSE if not Return type: bool Checks if the given word has a plural version. Example: is_countable('equipment'); // Returns FALSE

CI_FTP::delete_dir()

delete_dir($filepath) Parameters: $filepath (string) – Path to directory to delete Returns: TRUE on success, FALSE on failure Return type: bool Lets you delete a directory and everything it contains. Supply the source path to the directory with a trailing slash. Important Be VERY careful with this method! It will recursively delete everything within the supplied path, including sub-folders and all files. Make absolutely sure your path is correct. Try using list_files() first to ver

Downloading CodeIgniter

CodeIgniter v3.1.0 (Current version) CodeIgniter v3.0.6 CodeIgniter v3.0.5 CodeIgniter v3.0.4 CodeIgniter v3.0.3 CodeIgniter v3.0.2 CodeIgniter v3.0.1 CodeIgniter v3.0.0 CodeIgniter v2.2.3 CodeIgniter v2.2.2 CodeIgniter v2.2.1 CodeIgniter v2.2.0 CodeIgniter v2.1.4 CodeIgniter v2.1.3 CodeIgniter v2.1.2 CodeIgniter v2.1.1 CodeIgniter v2.1.0 GitHub Git is a distributed version control system. Public Git access is available at GitHub. Please note that while every effort is made to keep this code

CI_DB_query_builder::where_in()

where_in([$key = NULL[, $values = NULL[, $escape = NULL]]]) Parameters: $key (string) – Name of field to examine $values (array) – Array of target values $escape (bool) – Whether to escape values and identifiers Returns: DB_query_builder instance Return type: object Generates a WHERE field IN(‘item’, ‘item’) SQL query, joined with ‘AND’ if appropriate.

CI_Image_lib::initialize()

initialize([$props = array()]) Parameters: $props (array) – Image processing preferences Returns: TRUE on success, FALSE in case of invalid settings Return type: bool Initializes the class for processing an image.

CI_Loader::is_loaded()

is_loaded($class) Parameters: $class (string) – Class name Returns: Singleton property name if found, FALSE if not Return type: mixed Allows you to check if a class has already been loaded or not. Note The word “class” here refers to libraries and drivers. If the requested class has been loaded, the method returns its assigned name in the CI Super-object and FALSE if it’s not: $this->load->library('form_validation'); $this->load->is_loaded('Form_validation'); // r

CI_Unit_test::report()

report([$result = array()]) Parameters: $result (array) – Array containing tests results Returns: Test report Return type: string Generates a report about already complete tests.

CI_URI::uri_to_assoc()

uri_to_assoc([$n = 3[, $default = array()]]) Parameters: $n (int) – Segment index number $default (array) – Default values Returns: Associative URI segments array Return type: array This method lets you turn URI segments into an associative array of key/value pairs. Consider this URI: index.php/user/search/name/joe/location/UK/gender/male Using this method you can turn the URI into an associative array with this prototype: [array] ( 'name' => 'joe' 'loc

CI_Input::set_cookie()

set_cookie($name = ''[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = FALSE[, $httponly = FALSE]]]]]]]) Parameters: $name (mixed) – Cookie name or an array of parameters $value (string) – Cookie value $expire (int) – Cookie expiration time in seconds $domain (string) – Cookie domain $path (string) – Cookie path $prefix (string) – Cookie name prefix $secure (bool) – Whether to only transfer the cookie through HTTPS $httponly (bool) – Whether to on

humanize()

humanize($str[, $separator = '_']) Parameters: $str (string) – Input string $separator (string) – Input separator Returns: Humanized string Return type: string Takes multiple words separated by underscores and adds spaces between them. Each word is capitalized. Example: echo humanize('my_dog_spot'); // Prints 'My Dog Spot' To use dashes instead of underscores: echo humanize('my-dog-spot', '-'); // Prints 'My Dog Spot'