Build a table suitable for lists.
By a 'list' table, we mean a two column table with label:data pairs for example:
Product : Thingumy
Colour: Blue
Size: 25
package | dstruct_presentation |
---|
__construct(array $dataset, string $tableclass, string $leftclass, string $rightclass)
array
Data for table
string
Class to be added to the table element.
string
Class to be added to td elements on the left side of the table.
string
Class to be added to the td elements on the right side of the table.
addRow($arraydata)
see | \TableBuilder::addRow() |
---|
Array of data to add (should just have two elements!)
write(string $tablestart, string $tableend) : string
$tablestart and $tableend are useful if you need to buffer long tables etc.
string
Include
<
table> in the string.
string
Include in the string.
string
$arraydata : array
$leftclass : string
$rightclass : string
$tableclass : string
$z : integer