[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/admin/inc/ -> class_table.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 308 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DefaultTable:: (7 methods):
  construct_cell()
  construct_row()
  construct_header()
  output_row_cells()
  num_rows()
  output()
  construct_html()


Class: DefaultTable  - X-Ref

Generate a data grid/table.

construct_cell($data, $extra=array()   X-Ref
Construct an individual cell for this table.

param: string The HTML content for this cell.
param: array Array of extra information about this cell (class, id, colspan, rowspan, width)

construct_row($extra = array()   X-Ref
Construct a row from the earlier defined constructed cells for the table.

param: array Array of extra information about this row (class, id)

construct_header($data, $extra=array()   X-Ref
Construct a header cell for this table.

param: string The HTML content for this header cell.
param: array Array of extra information for this header cell (class, style, colspan, width)

output_row_cells($row_id, $return=false)   X-Ref
return the cells of a row for the table based row.

param: string The id of the row you want to give it.
param: boolean Whether or not to return or echo the resultant contents.
return: string The output of the row cells (optional).

num_rows()   X-Ref
Count the number of rows in the table. Useful for displaying a 'no rows' message.

return: int The number of rows in the table.

output($heading="", $border=1, $class="general", $return=false)   X-Ref
Output this table to the browser.

param: string The heading for this table.
param: int The border width for this table.
param: string The class for this table.
param: boolean Whether or not to return or echo the resultant contents.
return: string The output of the row cells (optional).

construct_html($heading="", $border=1, $class=null, $table_id="")   X-Ref
Fetch the built HTML for this table.

param: string The heading for this table.
param: int The border width for this table.
param: string The class for this table.
param: string The id for this table.
return: string The built HTML.



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1