summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-08 18:50:26 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-08 18:50:26 +0100
commit1f5909527f5a4984d4fa0a1f3bd51aa5bd850406 (patch)
tree6e03c328b2dff2d6d34e89914360d8c1e5295936 /user_guide_src/source/libraries
parent6f6102c805198101fad36024b82692ebce20f2c8 (diff)
Add method chaining support to CI_Table
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/table.rst15
1 files changed, 10 insertions, 5 deletions
diff --git a/user_guide_src/source/libraries/table.rst b/user_guide_src/source/libraries/table.rst
index ea0c417c4..6e011083e 100644
--- a/user_guide_src/source/libraries/table.rst
+++ b/user_guide_src/source/libraries/table.rst
@@ -167,7 +167,8 @@ Class Reference
.. method:: set_caption($caption)
:param string $caption: Table caption
- :rtype: void
+ :returns: CI_Table instance (method chaining)
+ :rtype: CI_Table
Permits you to add a caption to the table.
::
@@ -177,7 +178,8 @@ Class Reference
.. method:: set_heading([$args = array()[, ...]])
:param mixed $args: An array or multiple strings containing the table column titles
- :rtype: void
+ :returns: CI_Table instance (method chaining)
+ :rtype: CI_Table
Permits you to set the table heading. You can submit an array or discrete params::
@@ -188,7 +190,8 @@ Class Reference
.. method:: add_row([$args = array()[, ...]])
:param mixed $args: An array or multiple strings containing the row values
- :rtype: void
+ :returns: CI_Table instance (method chaining)
+ :rtype: CI_Table
Permits you to add a row to your table. You can submit an array or discrete params::
@@ -253,7 +256,8 @@ Class Reference
.. method:: set_empty($value)
:param mixed $value: Value to put in empty cells
- :rtype: void
+ :returns: CI_Table instance (method chaining)
+ :rtype: 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::
@@ -262,7 +266,8 @@ Class Reference
.. method:: clear()
- :rtype: void
+ :returns: CI_Table instance (method chaining)
+ :rtype: CI_Table
Lets you clear the table heading and row data. If you need to show multiple tables with different data you should to call this method
after each table has been generated to clear the previous table information. Example::