Form
in package
Table of Contents
Methods
- addAttribute() : string
- getAreaSubmitBox() : string
- Get's the submit button below textarea via page_diff_elements.tpl.php
- getCheckbox() : string
- Zeigt eine Checkbox Weitere Parameter in dieser Reihenfolge: Text, Check, Value, CSS
- getChecked() : string
- compares the first with the second and returns
- getHidden() : string
- erzeugt ein <input type=hidden name=$name value=$val>
- getHighlightField() : string
- hidden input id="hw" for the highlighting search words unset the session JsHighlight
- getInput() : string
- Generates an <input> or <select> element.
- getOptions() : string
- Create select options from an 1-dim or 2-dim array The 1-dim gets an auto index from php, the 2-dim an index from the code
- getOptionsCountry() : string
- Returns selectbox options of countries, country name by user language de/en
- getRadio() : string
- Zeigt beliebig viele Radio-Buttons für values 0,1,2 etc
- getRadioSingle() : string
- Zeigt eine Checkbox Weitere Parameter in dieser Reihenfolge: value, id, content, css, checked (true|false), title
- getRadioWithLabel() : string
- Gets input type radio with css
- getSelBoxCountries() : string
- Selectbox für Parties und Member unter Select2
- getSubmit() : string
- Zeigt einen Submit-Button Checkbox Weitere Parameter in dieser Reihenfolge: Value, Css, title
- getTextarea() : string
- Zeigt eine textarea Weitere Parameter in dieser Reihenfolge: Value, Css, placeholder Wenn id leer, wird name zu id kopiert
- getSelect() : string
- Generates a <select> element with pre-generated <option>s.
- isUsingValuesOnly() : bool
- renderOption() : string
Methods
addAttribute()
public
static addAttribute(array<string|int, mixed>|string $value, int|string $key, string $input) : string
Parameters
- $value : array<string|int, mixed>|string
- $key : int|string
- $input : string
Return values
stringgetAreaSubmitBox()
Get's the submit button below textarea via page_diff_elements.tpl.php
public
static getAreaSubmitBox([array<string|int, mixed> $change = [] ]) : string
Parameters
- $change : array<string|int, mixed> = []
-
- array of paras
Tags
Return values
stringgetCheckbox()
Zeigt eine Checkbox Weitere Parameter in dieser Reihenfolge: Text, Check, Value, CSS
public
static getCheckbox(string $strName) : string
Parameters
- $strName : string
-
des Feldes
Tags
Return values
string —- the checkbox
getChecked()
compares the first with the second and returns
public
static getChecked(mixed $strSQLVar, mixed $strHtmlVar) : string
Parameters
- $strSQLVar : mixed
- $strHtmlVar : mixed
Return values
string —- ' checked="checked"' | ''
getHidden()
erzeugt ein <input type=hidden name=$name value=$val>
public
static getHidden(string $name, mixed $val[, string $fieldID = '' ]) : string
Parameters
- $name : string
- $val : mixed
- $fieldID : string = ''
Tags
Return values
stringgetHighlightField()
hidden input id="hw" for the highlighting search words unset the session JsHighlight
public
static getHighlightField() : string
Return values
stringgetInput()
Generates an <input> or <select> element.
public
static getInput([array<string|int, mixed> $atts = [] ]) : string
- Creates an or
- Defaults to if 'type' is not specified or is not 'select'.
- For
Parameters
- $atts : array<string|int, mixed> = []
-
The attributes for the form element.
Tags
Return values
string —The generated HTML for the input or select.
getOptions()
Create select options from an 1-dim or 2-dim array The 1-dim gets an auto index from php, the 2-dim an index from the code
public
static getOptions([array<string|int, mixed> $options = [] ][, mixed $selected = '' ][, bool $useKeysAsValues = false ]) : string
Parameters
- $options : array<string|int, mixed> = []
- $selected : mixed = ''
- $useKeysAsValues : bool = false
Return values
string —- the options
getOptionsCountry()
Returns selectbox options of countries, country name by user language de/en
public
static getOptionsCountry([array<string|int, mixed>|string $strSelected = '' ]) : string
Parameters
- $strSelected : array<string|int, mixed>|string = ''
-
- the pre selected value
Tags
Return values
string —- the options for the selectbox
getRadio()
Zeigt beliebig viele Radio-Buttons für values 0,1,2 etc
public
static getRadio(string $strName) : string
Parameters
- $strName : string
-
des feldes
nutzt func_get_vars [1]=$nCheck = '0', [2]=$strFlagText = ''
Tags
Return values
string —- the radio buttons
getRadioSingle()
Zeigt eine Checkbox Weitere Parameter in dieser Reihenfolge: value, id, content, css, checked (true|false), title
public
static getRadioSingle(string $strName) : string
Parameters
- $strName : string
-
des Feldes
Tags
Return values
string —- the checkbox
getRadioWithLabel()
Gets input type radio with css
public
static getRadioWithLabel(array<string|int, mixed> $saLabel) : string
Needed only if we have other values than integers (0,1,2..) or if we need a class or if we need another order
Otherwise @param array $saLabel - $saLabel[0] = array("id"=>"","name"=>"","value"=>"","checked"=>"","content"=>"");
Parameters
- $saLabel : array<string|int, mixed>
Tags
Return values
stringgetSelBoxCountries()
Selectbox für Parties und Member unter Select2
public
static getSelBoxCountries(string $loccountry[, string|null $type = 'party' ]) : string
Parameters
- $loccountry : string
- $type : string|null = 'party'
Tags
Return values
stringgetSubmit()
Zeigt einen Submit-Button Checkbox Weitere Parameter in dieser Reihenfolge: Value, Css, title
public
static getSubmit([string $strName = '' ]) : string
Parameters
- $strName : string = ''
-
des Buttons
Return values
string —- the submit-button
getTextarea()
Zeigt eine textarea Weitere Parameter in dieser Reihenfolge: Value, Css, placeholder Wenn id leer, wird name zu id kopiert
public
static getTextarea([array<string|int, mixed> $atts = [] ]) : string
Parameters
- $atts : array<string|int, mixed> = []
-
id, name, value, css, placeholder, extra
Tags
Return values
string —- the textarea
getSelect()
Generates a <select> element with pre-generated <option>s.
private
static getSelect(array<string|int, mixed> $atts) : string
Parameters
- $atts : array<string|int, mixed>
-
The attributes for the
Tags
Return values
string —The generated HTML for the select element.
isUsingValuesOnly()
private
static isUsingValuesOnly(array<string|int, mixed> $options) : bool
Parameters
- $options : array<string|int, mixed>
Return values
boolrenderOption()
private
static renderOption(bool $isSelected, int|string $value, int|string $description) : string
Parameters
- $isSelected : bool
- $value : int|string
- $description : int|string