Structures elements using a table.
This is used to build HTML code by using objects.
Methods
Constructor
__construct(String $width)
Parameters
$width
Stringtable width (e.g. 100%)
Adds an element to the table.
addElement(mixed $element, boolean $newLine, boolean $isTableHeadElement)
The element may be a htmlElement object or a simple String.
Parameters
$element
mixedhtmlElement object or a simple String
$newLine
booleanadds a new line after the element (optional, default false)
$isTableHeadElement
booleanspecifies if this is a head or body element (default: body)
Adds another line to the table.
addNewLine()
Prints the HTML code for this element.
generateHTML(string $module, array $input, array $values, boolean $restricted, integer $tabindex, string $scope) : array
Parameters
$module
stringName of account module
$input
arrayList of meta-HTML elements
$values
arrayList of values which override the defaults in $input (name => value)
$restricted
booleanIf true then no buttons will be displayed
$tabindex
integerStart value of tabulator index for input fields
$scope
stringAccount type
Returns
arrayList of input field names and their type (name => type)
Returns the HTML attributes for the alignment.
getAlignmentString() : String
Inherited
| inherited_from |
\htmlElement::getAlignmentString() |
Returns
Stringalignment HTML attributes (e.g. align="right" valign="top")
Returns the HTML attribute for the colspan.
getColspanString() : String
Inherited
| inherited_from |
\htmlElement::getColspanString() |
Returns
Stringcolspan HTML attribute (e.g. colspan=3)
Returns the HTML attribute for the rowspan.
getRowspanString() : String
Inherited
| inherited_from |
\htmlElement::getRowspanString() |
Returns
Stringrowspan HTML attribute (e.g. rowspan=3)
Returns the CSS classes of the surrounding table cell for this element.
getTableCellCSSClasses() : array
Inherited
| inherited_from |
\htmlElement::getTableCellCSSClasses() |
Returns
arrayCSS classes
Merges the content of another htmlTable object into this table.
mergeTableElements(\$table $table)
Parameters
$table
\$tabletable to get elements
Adds CSS classes to this element.
setCSSClasses(array $classes)
Inherited
| inherited_from |
\htmlElement::setCSSClasses() |
Parameters
$classes
arrayCSS class names
Adds CSS classes to the surrounding table cell for this element.
setTableCellCSSClasses(array $classes)
Inherited
| inherited_from |
\htmlElement::setTableCellCSSClasses() |
Parameters
$classes
arrayCSS class names
Properties
alignment when inside a table
$alignment
Inherited
| inherited_from |
\htmlElement::$$alignment |
colspan if inside a table
$colspan
Inherited
| inherited_from |
\htmlElement::$$colspan |
rowspan if inside a table
$rowspan
Inherited
| inherited_from |
\htmlElement::$$rowspan |
CSS classes
$cssClasses
Inherited
| inherited_from |
\htmlElement::$$cssClasses |
table cell CSS classes
$tableCellCssClasses
Inherited
| inherited_from |
\htmlElement::$$tableCellCssClasses |
list of subelements
$elements
specifies if currently a row is open
$rowOpen
Constants
align to bottom
ALIGN_BOTTOM
Inherited
| inherited_from |
\htmlElement::ALIGN_BOTTOM |
align to center
ALIGN_CENTER
Inherited
| inherited_from |
\htmlElement::ALIGN_CENTER |
align to left
ALIGN_LEFT
Inherited
| inherited_from |
\htmlElement::ALIGN_LEFT |
align to right
ALIGN_RIGHT
Inherited
| inherited_from |
\htmlElement::ALIGN_RIGHT |
align to top
ALIGN_TOP
Inherited
| inherited_from |
\htmlElement::ALIGN_TOP |
validation rule to allow only numbers ([0-9]+)
VALIDATE_NUMERIC
Inherited
| inherited_from |
\htmlElement::VALIDATE_NUMERIC |