\Hazaar\Html
Table
The HTML table class.

Displays an HTML <table> element.

Tags

Since

1.1

Summary
Methods Properties Constants
No constants
Properties
$tbody
$tbody
$tfoot
$tfoot
$thead
$thead
Methods
__construct()
__construct($rows = null, $parameters = Array ( ) )

The HTML table constructor.

Tags

Since

1.1

Parameters

$rows

No description

$parametersarray

Optional parameters to apply to the anchor.

addFooter()
addFooter($fields)

Add a header to the table. If a header was previously set, it will be overwritten as only a single header is allowed.

Tags

Since

1.2

Parameters

$fieldsarray

An array of fields to add to the row. This can be any element. If an element is a

         \Hazaar\Html\Th object then it will be added as-is.
addFooters()
addFooters($rows)

Add multiple headers at a time. Takes an array of row arrays.

Tags

Since

1.2

Parameters

$rowsarray

An array of row array data

addHeader()
addHeader($fields)

Add a header to the table. If a header was previously set, it will be overwritten as only a single header is allowed.

Tags

Since

1.2

Parameters

$fieldsarray

An array of fields to add to the row. This can be any element. If an element is a

         \Hazaar\Html\Th object then it will be added as-is.
addHeaders()
addHeaders($rows)

Add multiple headers at a time. Takes an array of row arrays.

Tags

Since

1.2

Parameters

$rowsarray

An array of row array data

addRow()
addRow($fields)

Add a row to the table.

Tags

Since

1.2

Parameters

$fieldsarray

An array of fields to add to the row. This can be any element. If an element is a

         \Hazaar\Html\Th object then it will be added as-is.
addRows()
addRows($rows)

Add multiple rows at a time. Takes an array of row arrays.

Tags

Since

1.2

Parameters

$rowsarray

An array of row array data