summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/table.rst
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
committerAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
commite5454f9b28f123a5549971f580255a065b2f8cc2 (patch)
treec4927e7b7afb0bf242976034630cc60f2f1db00f /user_guide_src/source/libraries/table.rst
parent6db62ab0ad0e223806a1367e12b1884b48dc65d7 (diff)
parenteccac6e6a73a4d1a5b40f383ce64359c2c94ae12 (diff)
Merge remote-tracking branch 'upstream/develop' into develop
Diffstat (limited to 'user_guide_src/source/libraries/table.rst')
-rw-r--r--user_guide_src/source/libraries/table.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/user_guide_src/source/libraries/table.rst b/user_guide_src/source/libraries/table.rst
index bb001e84c..91ae1ae8d 100644
--- a/user_guide_src/source/libraries/table.rst
+++ b/user_guide_src/source/libraries/table.rst
@@ -143,7 +143,7 @@ You can also set defaults for these in a config file.
Class Reference
***************
-.. class:: CI_Table
+.. php:class:: CI_Table
.. attribute:: $function = NULL
@@ -162,7 +162,7 @@ Class Reference
<td>Fred</td><td>&lt;strong&gt;Blue&lt;/strong&gt;</td><td>Small</td>
- .. method:: generate([$table_data = NULL])
+ .. php:method:: generate([$table_data = NULL])
:param mixed $table_data: Data to populate the table rows with
:returns: HTML table
@@ -170,7 +170,7 @@ Class Reference
Returns a string containing the generated table. Accepts an optional parameter which can be an array or a database result object.
- .. method:: set_caption($caption)
+ .. php:method:: set_caption($caption)
:param string $caption: Table caption
:returns: CI_Table instance (method chaining)
@@ -181,7 +181,7 @@ Class Reference
$this->table->set_caption('Colors');
- .. method:: set_heading([$args = array()[, ...]])
+ .. php:method:: set_heading([$args = array()[, ...]])
:param mixed $args: An array or multiple strings containing the table column titles
:returns: CI_Table instance (method chaining)
@@ -193,7 +193,7 @@ Class Reference
$this->table->set_heading(array('Name', 'Color', 'Size'));
- .. method:: add_row([$args = array()[, ...]])
+ .. php:method:: add_row([$args = array()[, ...]])
:param mixed $args: An array or multiple strings containing the row values
:returns: CI_Table instance (method chaining)
@@ -214,7 +214,7 @@ Class Reference
// generates
// <td class='highlight' colspan='2'>Blue</td><td>Red</td><td>Green</td>
- .. method:: make_columns([$array = array()[, $col_limit = 0]])
+ .. php:method:: make_columns([$array = array()[, $col_limit = 0]])
:param array $array: An array containing multiple rows' data
:param int $col_limit: Count of columns in the table
@@ -244,7 +244,7 @@ Class Reference
</table>
- .. method:: set_template($template)
+ .. php:method:: set_template($template)
:param array $template: An associative array containing template values
:returns: TRUE on success, FALSE on failure
@@ -259,7 +259,7 @@ Class Reference
$this->table->set_template($template);
- .. method:: set_empty($value)
+ .. php:method:: set_empty($value)
:param mixed $value: Value to put in empty cells
:returns: CI_Table instance (method chaining)
@@ -270,7 +270,7 @@ Class Reference
$this->table->set_empty("&nbsp;");
- .. method:: clear()
+ .. php:method:: clear()
:returns: CI_Table instance (method chaining)
:rtype: CI_Table