Represents a HTML element.

This is used to build HTML code by using objects.

package metaHTML

 Methods

Prints the HTML code for this element.

generateHTML(string $module, array $input, array $values, boolean $restricted, integer $tabindex, string $scope) : array

Parameters

$module

string

Name of account module

$input

array

List of meta-HTML elements

$values

array

List of values which override the defaults in $input (name => value)

$restricted

boolean

If true then no buttons will be displayed

$tabindex

integer

Start value of tabulator index for input fields

$scope

string

Account type

Returns

arrayList of input field names and their type (name => type)

Returns the HTML attributes for the alignment.

getAlignmentString() : String

Returns

Stringalignment HTML attributes (e.g. align="right" valign="top")

Returns the HTML attribute for the colspan.

getColspanString() : String

Returns

Stringcolspan HTML attribute (e.g. colspan=3)

Returns the HTML attribute for the rowspan.

getRowspanString() : String

Returns

Stringrowspan HTML attribute (e.g. rowspan=3)

Returns the CSS classes of the surrounding table cell for this element.

getTableCellCSSClasses() : array

Returns

arrayCSS classes

Adds CSS classes to this element.

setCSSClasses(array $classes) 

Parameters

$classes

array

CSS class names

Adds CSS classes to the surrounding table cell for this element.

setTableCellCSSClasses(array $classes) 

Parameters

$classes

array

CSS class names

 Properties

 

alignment when inside a table

$alignment 

 

colspan if inside a table

$colspan 

 

rowspan if inside a table

$rowspan 

 

CSS classes

$cssClasses 

 

table cell CSS classes

$tableCellCssClasses 

 Constants

 

align to bottom

ALIGN_BOTTOM 

 

align to center

ALIGN_CENTER 

 

align to left

ALIGN_LEFT 

 

align to right

ALIGN_RIGHT 

 

align to top

ALIGN_TOP 

 

validation rule to allow only numbers ([0-9]+)

VALIDATE_NUMERIC