[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

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

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license

File Size: 295 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()
  output_row_cells()
  num_rows()
  construct_header()
  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 $data The HTML content for this cell.
param: array $extra 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 $extra Array of extra information about this row (class, id)

output_row_cells($row_id, $return=false)   X-Ref
return the cells of a row for the table based row.
return: string The output of the row cells (optional).
param: string $row_id The id of the row you want to give it.
param: boolean $return Whether or not to return or echo the resultant contents.

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.

construct_header($data, $extra=array()   X-Ref
Construct a header cell for this table.
param: string $data The HTML content for this header cell.
param: array $extra Array of extra information for this header cell (class, style, colspan, width)

output($heading="", $border=1, $class="general", $return=false)   X-Ref
Output this table to the browser.
return: string The output of the row cells (optional).
param: string $heading The heading for this table.
param: int $border The border width for this table.
param: string $class The class for this table.
param: boolean $return Whether or not to return or echo the resultant contents.

construct_html($heading="", $border=1, $class=null, $table_id="")   X-Ref
Fetch the built HTML for this table.
return: string The built HTML.
param: string $heading The heading for this table.
param: int $border The border width for this table.
param: string $class The class for this table.
param: string $table_id The id for this table.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref