CI_FTP::connect()

connect([$config = array()]) Parameters: $config (array) – Connection values Returns: TRUE on success, FALSE on failure Return type: bool Connects and logs into to the FTP server. Connection preferences are set by passing an array to the function, or you can store them in a config file. Here is an example showing how you set preferences manually: $this->load->library('ftp'); $config['hostname'] = 'ftp.example.com'; $config['username'] = 'your-username'; $config['password'] =

CI_Config::set_item()

set_item($item, $value) Parameters: $item (string) – Config item name $value (string) – Config item value Return type: void Sets a config file item to the specified value.

nbs()

nbs([$num = 1]) Parameters: $num (int) – Number of space entities to produce Returns: A sequence of non-breaking space HTML entities Return type: string Generates non-breaking spaces ( ) based on the number you submit. Example: echo nbs(3); The above would produce:     Note This function is DEPRECATED. Use the native str_repeat() in combination with   instead.

br()

br([$count = 1]) Parameters: $count (int) – Number of times to repeat the tag Returns: HTML line break tag Return type: string Generates line break tags (<br />) based on the number you submit. Example: echo br(3); The above would produce: <br /><br /><br /> Note This function is DEPRECATED. Use the native str_repeat() in combination with <br /> instead.

hash_equals()

hash_equals($known_string, $user_string) Parameters: $known_string (string) – Known string $user_string (string) – User-supplied string Returns: TRUE if the strings match, FALSE otherwise Return type: string For more information, please refer to the PHP manual for hash_equals().

password_needs_rehash()

password_needs_rehash() Parameters: $hash (string) – Password hash $algo (int) – Hashing algorithm $options (array) – Hashing options Returns: TRUE if the hash should be rehashed to match the given algorithm and options, FALSE otherwise Return type: bool For more information, please refer to the PHP manual for password_needs_rehash().

CI_Input::get_request_header()

get_request_header($index[, $xss_clean = FALSE]) Parameters: $index (string) – HTTP request header name $xss_clean (bool) – Whether to apply XSS filtering Returns: An HTTP request header or NULL if not found Return type: string Returns a single member of the request headers array or NULL if the searched header is not found. $this->input->get_request_header('some-header', TRUE);

CI_DB_query_builder::truncate()

truncate([$table = '']) Parameters: $table (string) – Table name Returns: TRUE on success, FALSE on failure Return type: bool Executes a TRUNCATE statement on a table. Note If the database platform in use doesn’t support TRUNCATE, a DELETE statement will be used instead.

is_https()

is_https() Returns: TRUE if currently using HTTP-over-SSL, FALSE if not Return type: bool Returns TRUE if a secure (HTTPS) connection is used and FALSE in any other case (including non-HTTP requests).

CI_Loader::get_package_paths()

get_package_paths([$include_base = TRUE]) Parameters: $include_base (bool) – Whether to include BASEPATH Returns: An array of package paths Return type: array Returns all currently available package paths.