PHP Class Redaxscript\Html\Form

Since: 2.6.0
Author: Henry Ruhs
Inheritance: extends HtmlAbstract
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство Type Description
$_attributeArray array attributes of the form
$_captcha object captcha of the form
$_language object instance of the language class
$_languageArray array languages of the form
$_optionArray array options of the form
$_registry object instance of the registry class

Méthodes publiques

Méthode Description
__call ( string $method = null, array $argumentArray = [] ) : Form call method as needed
__construct ( Registry $registry, Language $language ) constructor of the class
__toString ( ) : string stringify the form
captcha ( string $type = null ) : Form append the captcha
init ( array $attributeArray = [], array $optionArray = [] ) : Form init the class
label ( string $html = null, array $attributeArray = [] ) : Form append the label
legend ( string $html = null, array $attributeArray = [] ) : Form append the legend
render ( ) : string render the form
select ( array $optionArray = [], array $attributeArray = [] ) : Form append the select
selectRange ( array $rangeArray = [], array $attributeArray = [] ) : Form append the select range
textarea ( array $attributeArray = [] ) : Form append the textarea
token ( ) : Form append the token

Méthodes protégées

Méthode Description
_createButton ( string $type = null, string $text = null, array $attributeArray = [] ) : Form create the button
_createInput ( string $type = 'text', array $attributeArray = [] ) : Form create the input
_createLink ( string $type = null, string $text = null, array $attributeArray = [] ) : Form create the link
_createOption ( array $optionArray = [], mixed $selected = null ) : string create the option

Method Details

__call() public méthode

call method as needed
Since: 2.6.0
public __call ( string $method = null, array $argumentArray = [] ) : Form
$method string name of the method
$argumentArray array arguments of the method
Résultat Form

__construct() public méthode

constructor of the class
Since: 2.6.0
public __construct ( Registry $registry, Language $language )
$registry Redaxscript\Registry instance of the registry class
$language Redaxscript\Language instance of the language class

__toString() public méthode

stringify the form
Since: 2.6.0
public __toString ( ) : string
Résultat string

_createButton() protected méthode

create the button
Since: 2.6.0
protected _createButton ( string $type = null, string $text = null, array $attributeArray = [] ) : Form
$type string type of the button
$text string text of the button
$attributeArray array attributes of the button
Résultat Form

_createInput() protected méthode

create the input
Since: 2.6.0
protected _createInput ( string $type = 'text', array $attributeArray = [] ) : Form
$type string type of the input
$attributeArray array attributes of the input
Résultat Form

_createOption() protected méthode

create the option
Since: 3.0.0
protected _createOption ( array $optionArray = [], mixed $selected = null ) : string
$optionArray array options of the select
$selected mixed option to be selected
Résultat string

captcha() public méthode

append the captcha
Since: 2.6.0
public captcha ( string $type = null ) : Form
$type string type of the captcha
Résultat Form

init() public méthode

init the class
Since: 2.6.0
public init ( array $attributeArray = [], array $optionArray = [] ) : Form
$attributeArray array attributes of the form
$optionArray array options of the form
Résultat Form

label() public méthode

append the label
Since: 3.0.0
public label ( string $html = null, array $attributeArray = [] ) : Form
$html string html of the label
$attributeArray array attributes of the label
Résultat Form

legend() public méthode

append the legend
Since: 3.0.0
public legend ( string $html = null, array $attributeArray = [] ) : Form
$html string html of the legend
$attributeArray array attributes of the legend
Résultat Form

render() public méthode

render the form
Since: 2.6.0
public render ( ) : string
Résultat string

select() public méthode

append the select
Since: 2.6.0
public select ( array $optionArray = [], array $attributeArray = [] ) : Form
$optionArray array options of the select
$attributeArray array attributes of the select
Résultat Form

selectRange() public méthode

append the select range
Since: 3.0.0
public selectRange ( array $rangeArray = [], array $attributeArray = [] ) : Form
$rangeArray array range of the select
$attributeArray array attributes of the select
Résultat Form

textarea() public méthode

append the textarea
Since: 2.6.0
public textarea ( array $attributeArray = [] ) : Form
$attributeArray array attributes of the textarea
Résultat Form

token() public méthode

append the token
Since: 2.6.0
public token ( ) : Form
Résultat Form

Property Details

$_attributeArray protected_oe property

attributes of the form
protected array $_attributeArray
Résultat array

$_captcha protected_oe property

captcha of the form
protected object $_captcha
Résultat object

$_language protected_oe property

instance of the language class
protected object $_language
Résultat object

$_languageArray protected_oe property

languages of the form
protected array $_languageArray
Résultat array

$_optionArray protected_oe property

options of the form
protected array $_optionArray
Résultat array

$_registry protected_oe property

instance of the registry class
protected object $_registry
Résultat object