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

 Methods

Class constructor.

__construct(array $dataset, string $tableclass, string $leftclass, string $rightclass) 

Parameters

$dataset

array

Data for table

$tableclass

string

Class to be added to the table element.

$leftclass

string

Class to be added to td elements on the left side of the table.

$rightclass

string

Class to be added to the td elements on the right side of the table.

Add a row to the table.

addRow($arraydata) 
see \TableBuilder::addRow()

Parameters

$arraydata

Array of data to add (should just have two elements!)

(non-PHPdoc)

clear() 

Write the table.

write(string $tablestart, string $tableend) : string

$tablestart and $tableend are useful if you need to buffer long tables etc.

Parameters

$tablestart

string

Include

<

table> in the string.

$tableend

string

Include in the string.

Returns

string

 Properties

 

$arraydata : array
 

$leftclass : string
 

$rightclass : string
 

$tableclass : string
 

$z : integer