Class HtmlFormInstallation
- HtmlElement
- HtmlFormBasic
- HtmlForm
- HtmlFormInstallation
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
Create the html script for an installation / update form
This class will create the complete html for a installation / update page. First you set the modus (update or installation) and then you can optional add custom text to the page. The main configuration part will be the form. You can use the complete methods of the Form class.
Class: HtmlFormInstallation
Code:
// create a simple installation form with a free text, a text field and a submit button $form = new HtmlFormInstallation('installation-form', 'next_html_page.php'); $form->setText('This is an example.'); $form->addSubmitButton('next_page', $gL10n->get('SYS_NEXT'), array('icon' => 'layout/forward.png', 'type' => 'button')); $form->show();
Endcode
Par: Examples
Located at htmlforminstallation.php
Methods summary
public
|
|
public
|
#
setFormDescription( string $description, string $title = '' )
If the method is called then a text with an optional title will be displayed after the headline before the form will be displayed. |
public
|
#
setInstallationModus( )
Set the form in the installation modus. Therefore headline and title will be changed. This is the default modus and will be set automatically if not modus is set in the calling code. |
public
|
|
public
string
|
Methods inherited from HtmlForm
addButton()
,
addCaptcha()
,
addCheckbox()
,
addCustomContent()
,
addDescription()
,
addEditor()
,
addFileUpload()
,
addInput()
,
addLine()
,
addMultilineTextInput()
,
addRadioButton()
,
addSelectBox()
,
addSelectBoxForCategories()
,
addSelectBoxFromSql()
,
addSelectBoxFromXml()
,
addStaticControl()
,
addSubmitButton()
,
closeButtonGroup()
,
closeControlStructure()
,
closeGroupBox()
,
getHelpTextIcon()
,
openButtonGroup()
,
openControlStructure()
,
openGroupBox()
Methods inherited from HtmlFormBasic
addFieldSet()
,
addLabel()
,
addLegend()
,
addOption()
,
addOptionGroup()
,
addSelect()
,
addSimpleButton()
,
addSimpleInput()
,
addTextArea()
,
closeFieldSet()
,
closeOptionGroup()
,
closeSelect()
,
getHtmlForm()
Methods inherited from HtmlElement
addAttribute()
,
addData()
,
addElement()
,
addHtml()
,
addParentElement()
,
closeParentElement()
,
getHtmlElement()
,
setAttributesFromArray()
Properties summary
private
|
$descriptionTitle
|
|
private
|
$descriptionText
|
|
private
|
$headline
|
|
private
|
$title
|
Properties inherited from HtmlForm
$buttonGroupOpen
,
$countElements
,
$datepickerInitialized
,
$flagFieldListOpen
,
$flagRequiredFields
,
$htmlPage
,
$id
,
$showRequiredFields
,
$type
Properties inherited from HtmlElement
$arrParentElements
,
$currentElement
,
$currentElementAttributes
,
$currentElementDataWritten
,
$htmlString
,
$mainElement
,
$mainElementAttributes
,
$mainElementWritten
,
$nesting
,
$parentFlag