summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/table.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-02 12:41:01 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-02 12:41:01 +0100
commitcd3d9dbcbc99fa956b7400d328f202e1bcab4677 (patch)
treeca1e12b6751f31de8f49055118318643f7d647c7 /user_guide_src/source/libraries/table.rst
parent7fd0c2d22ccbeb824419477ae8b506b84002ea13 (diff)
[ci skip] Fix #3515
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