CI_Trackback::data()

data($item) Parameters: $item (string) – Data key Returns: Data value or empty string if not found Return type: string Returns a single item from the reponse data array.

CI_Trackback::convert_xml()

convert_xml($str) Parameters: $str (string) – Input string Returns: Converted string Return type: string Converts reserved XML characters to entities.

CI_Trackback::convert_ascii()

convert_ascii($str) Parameters: $str (string) – Input string Returns: Converted string Return type: string Converts high ASCII text and MS Word special characterss to HTML entities.

CI_Trackback

class CI_Trackback $data = array('url' => '', 'title' => '', 'excerpt' => '', 'blog_name' => '', 'charset' => '') Trackback data array. $convert_ascii = TRUE Whether to convert high ASCII and MS Word characters to HTML entities. send($tb_data) Parameters: $tb_data (array) – Trackback data Returns: TRUE on success, FALSE on failure Return type: bool Send trackback. receive() Returns: TRUE on success, FALSE on failure Return type: bool This method sim

CI_Table::set_template()

set_template($template) Parameters: $template (array) – An associative array containing template values Returns: TRUE on success, FALSE on failure Return type: bool Permits you to set your template. You can submit a full or partial template. $template = array( 'table_open' => '<table border="1" cellpadding="2" cellspacing="1" class="mytable">' ); $this->table->set_template($template);

CI_Table::set_heading()

set_heading([$args = array()[, ...]]) Parameters: $args (mixed) – An array or multiple strings containing the table column titles Returns: CI_Table instance (method chaining) Return type: CI_Table Permits you to set the table heading. You can submit an array or discrete params: $this->table->set_heading('Name', 'Color', 'Size'); $this->table->set_heading(array('Name', 'Color', 'Size'));

CI_Table::set_empty()

set_empty($value) Parameters: $value (mixed) – Value to put in empty cells Returns: CI_Table instance (method chaining) Return type: CI_Table Lets you set a default value for use in any table cells that are empty. You might, for example, set a non-breaking space: $this->table->set_empty("&nbsp;");

CI_Table::set_caption()

set_caption($caption) Parameters: $caption (string) – Table caption Returns: CI_Table instance (method chaining) Return type: CI_Table Permits you to add a caption to the table. $this->table->set_caption('Colors');

CI_Table::make_columns()

make_columns([$array = array()[, $col_limit = 0]]) Parameters: $array (array) – An array containing multiple rows’ data $col_limit (int) – Count of columns in the table Returns: An array of HTML table columns Return type: array This method takes a one-dimensional array as input and creates a multi-dimensional array with a depth equal to the number of columns desired. This allows a single array with many elements to be displayed in a table that has a fixed column count. Consider thi

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.