__construct()
generateHTML()
getAlignmentString()
getColspanString()
getRowspanString()
getTableCellCSSClasses()
setCSSClasses()
setIconClass()
setIsEnabled()
setOnClick()
setTableCellCSSClasses()
setTitle()
$alignment
$colspan
$rowspan
$cssClasses
$isImageButton
$name
$tableCellCssClasses
$value
$iconClass
$isEnabled
$onClick
$title
ALIGN_BOTTOM
ALIGN_CENTER
ALIGN_LEFT
ALIGN_RIGHT
ALIGN_TOP
VALIDATE_NUMERIC
Simple button.
This is used to build HTML code by using objects.
| package | metaHTML |
|---|
__construct(String $name, String $value, String $isImageButton)
Stringbutton name
Stringbutton text or image (16x16px, relative to graphics folder)
Stringimage or text button (default text)
generateHTML(string $module, array $input, array $values, boolean $restricted, integer $tabindex, string $scope) : array
stringName of account module
arrayList of meta-HTML elements
arrayList of values which override the defaults in $input (name => value)
booleanIf true then no buttons will be displayed
integerStart value of tabulator index for input fields
stringAccount type
arrayList of input field names and their type (name => type)getAlignmentString() : String
| inherited_from | \htmlElement::getAlignmentString() |
|---|
Stringalignment HTML attributes (e.g. align="right" valign="top")getColspanString() : String
| inherited_from | \htmlElement::getColspanString() |
|---|
Stringcolspan HTML attribute (e.g. colspan=3)getRowspanString() : String
| inherited_from | \htmlElement::getRowspanString() |
|---|
Stringrowspan HTML attribute (e.g. rowspan=3)getTableCellCSSClasses() : array
| inherited_from | \htmlElement::getTableCellCSSClasses() |
|---|
arrayCSS classessetCSSClasses(array $classes)
| inherited_from | \htmlElement::setCSSClasses() |
|---|
arrayCSS class names
setIconClass(String $iconClass)
The icon class is a CSS class that specifies the icon image (e.g. "deleteButton" in layout.css).
Stringicon class
setIsEnabled(boolean $isEnabled)
booleanenabled if true
setOnClick(String $onClick)
This makes this button a simple button that does not submit a form.
StringJS code
setTableCellCSSClasses(array $classes)
| inherited_from | \htmlElement::setTableCellCSSClasses() |
|---|
arrayCSS class names
setTitle(String $title)
Stringtitle
$alignment
| inherited_from | \htmlElement::$$alignment |
|---|
$colspan
| inherited_from | \htmlElement::$$colspan |
|---|
$rowspan
| inherited_from | \htmlElement::$$rowspan |
|---|
$cssClasses
| inherited_from | \htmlElement::$$cssClasses |
|---|
$isImageButton
$name
$tableCellCssClasses
| inherited_from | \htmlElement::$$tableCellCssClasses |
|---|
$value
$iconClass
$isEnabled
$onClick
$title
ALIGN_BOTTOM
| inherited_from | \htmlElement::ALIGN_BOTTOM |
|---|
ALIGN_CENTER
| inherited_from | \htmlElement::ALIGN_CENTER |
|---|
ALIGN_LEFT
| inherited_from | \htmlElement::ALIGN_LEFT |
|---|
ALIGN_RIGHT
| inherited_from | \htmlElement::ALIGN_RIGHT |
|---|
ALIGN_TOP
| inherited_from | \htmlElement::ALIGN_TOP |
|---|
VALIDATE_NUMERIC
| inherited_from | \htmlElement::VALIDATE_NUMERIC |
|---|