diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-04-27 00:09:25 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-04-27 00:09:25 +0200 |
commit | 3182a76899e75bc99da855d79867ce9fcfdc5592 (patch) | |
tree | 19d16293d0801a279ac8b3a7dc97d185fb68f5b9 /system/libraries | |
parent | 042766bac61958a21ba5d6b3c53b0e4296fdcce7 (diff) |
Fix Table library docblocks
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Table.php | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php index 3777d29ff..c5c71d889 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php @@ -38,13 +38,60 @@ */ class CI_Table { + /** + * Data for table rows + * + * @var array + */ public $rows = array(); + + /** + * Data for table heading + * + * @var array + */ public $heading = array(); + + /** + * Whether or not to automatically create the table header + * + * @var bool + */ public $auto_heading = TRUE; + + /** + * Table caption + * + * @var string + */ public $caption = NULL; + + /** + * Table layout template + * + * @var array + */ public $template = NULL; + + /** + * Newline setting + * + * @var string + */ public $newline = "\n"; + + /** + * Contents of empty cells + * + * @var string + */ public $empty_cells = ''; + + /** + * Callback for custom table layout + * + * @var function + */ public $function = FALSE; /** @@ -93,7 +140,7 @@ class CI_Table { * @param mixed * @return void */ - public function set_heading() + public function set_heading($args=array()) { $args = func_get_args(); $this->heading = $this->_prep_args($args); @@ -172,7 +219,7 @@ class CI_Table { * @param mixed * @return void */ - public function add_row() + public function add_row($args = array()) { $args = func_get_args(); $this->rows[] = $this->_prep_args($args); @@ -420,6 +467,7 @@ class CI_Table { * Set table data from an array * * @param array + * @param bool * @return void */ protected function _set_from_array($data, $set_heading = TRUE) |