CI_Zip::get_zip()

get_zip() Returns: Zip file content Return type: string Returns the Zip-compressed file data. Generally you will not need this method unless you want to do something unique with the data. Example: $name = 'my_bio.txt'; $data = 'I was born in an elevator...'; $this->zip->add_data($name, $data); $zip_file = $this->zip->get_zip();

CI_Xmlrpc::timeout()

timeout($seconds = 5) Parameters: $seconds (int) – Timeout in seconds Return type: void Set a time out period (in seconds) after which the request will be canceled: $this->xmlrpc->timeout(6);

anchor_popup()

anchor_popup($uri = '', $title = '', $attributes = FALSE) Parameters: $uri (string) – URI string $title (string) – Anchor title $attributes (mixed) – HTML attributes Returns: Pop-up hyperlink Return type: string Nearly identical to the anchor() function except that it opens the URL in a new window. You can specify JavaScript window attributes in the third parameter to control how the window is opened. If the third parameter is not set it will simply open a new window with your own

CI_User_agent::parse()

parse($string) Parameters: $string (string) – A custom user-agent string Return type: void Parses a custom user-agent string, different from the one reported by the current visitor.

xml_convert()

xml_convert($str[, $protect_all = FALSE]) Parameters: $str (string) – the text string to convert $protect_all (bool) – Whether to protect all content that looks like a potential entity instead of just numbered entities, e.g. &foo; Returns: XML-converted string Return type: string Takes a string as input and converts the following reserved XML characters to entities: Ampersands: & Less than and greater than characters: < > Single and double quotes: ‘ “ Dashes: - This

CI_URI::total_segments()

total_segments() Returns: Count of URI segments Return type: int Returns the total number of segments.

auto_link()

auto_link($str, $type = 'both', $popup = FALSE) Parameters: $str (string) – Input string $type (string) – Link type (‘email’, ‘url’ or ‘both’) $popup (bool) – Whether to create popup links Returns: Linkified string Return type: string Automatically turns URLs and e-mail addresses contained in a string into links. Example: $string = auto_link($string); The second parameter determines whether URLs and e-mails are converted or just one or the other. Default behavior is both if the p

CI_User_agent::robot()

robot() Returns: Detected robot name or an empty string Return type: string Returns a string containing the name of the robot viewing your site.

character_limiter()

character_limiter($str[, $n = 500[, $end_char = '…']]) Parameters: $str (string) – Input string $n (int) – Number of characters $end_char (string) – End character (usually an ellipsis) Returns: Character-limited string Return type: string Truncates a string to the number of characters specified. It maintains the integrity of words so the character count may be slightly more or less than what you specify. Example: $string = "Here is a nice text string consisting of eleven words.";

CI_Table::generate()

generate([$table_data = NULL]) Parameters: $table_data (mixed) – Data to populate the table rows with Returns: HTML table Return type: string Returns a string containing the generated table. Accepts an optional parameter which can be an array or a database result object.