PHP Класс Redaxscript\Html\Form

С версии: 2.6.0
Автор: Henry Ruhs
Наследование: extends HtmlAbstract
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
_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

Описание методов

__call() публичный Метод

call method as needed
С версии: 2.6.0
public __call ( string $method = null, array $argumentArray = [] ) : Form
$method string name of the method
$argumentArray array arguments of the method
Результат Form

__construct() публичный Метод

constructor of the class
С версии: 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() публичный Метод

stringify the form
С версии: 2.6.0
public __toString ( ) : string
Результат string

_createButton() защищенный Метод

create the button
С версии: 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
Результат Form

_createInput() защищенный Метод

create the input
С версии: 2.6.0
protected _createInput ( string $type = 'text', array $attributeArray = [] ) : Form
$type string type of the input
$attributeArray array attributes of the input
Результат Form

_createOption() защищенный Метод

create the option
С версии: 3.0.0
protected _createOption ( array $optionArray = [], mixed $selected = null ) : string
$optionArray array options of the select
$selected mixed option to be selected
Результат string

captcha() публичный Метод

append the captcha
С версии: 2.6.0
public captcha ( string $type = null ) : Form
$type string type of the captcha
Результат Form

init() публичный Метод

init the class
С версии: 2.6.0
public init ( array $attributeArray = [], array $optionArray = [] ) : Form
$attributeArray array attributes of the form
$optionArray array options of the form
Результат Form

label() публичный Метод

append the label
С версии: 3.0.0
public label ( string $html = null, array $attributeArray = [] ) : Form
$html string html of the label
$attributeArray array attributes of the label
Результат Form

legend() публичный Метод

append the legend
С версии: 3.0.0
public legend ( string $html = null, array $attributeArray = [] ) : Form
$html string html of the legend
$attributeArray array attributes of the legend
Результат Form

render() публичный Метод

render the form
С версии: 2.6.0
public render ( ) : string
Результат string

select() публичный Метод

append the select
С версии: 2.6.0
public select ( array $optionArray = [], array $attributeArray = [] ) : Form
$optionArray array options of the select
$attributeArray array attributes of the select
Результат Form

selectRange() публичный Метод

append the select range
С версии: 3.0.0
public selectRange ( array $rangeArray = [], array $attributeArray = [] ) : Form
$rangeArray array range of the select
$attributeArray array attributes of the select
Результат Form

textarea() публичный Метод

append the textarea
С версии: 2.6.0
public textarea ( array $attributeArray = [] ) : Form
$attributeArray array attributes of the textarea
Результат Form

token() публичный Метод

append the token
С версии: 2.6.0
public token ( ) : Form
Результат Form

Описание свойств

$_attributeArray защищенное свойство

attributes of the form
protected array $_attributeArray
Результат array

$_captcha защищенное свойство

captcha of the form
protected object $_captcha
Результат object

$_language защищенное свойство

instance of the language class
protected object $_language
Результат object

$_languageArray защищенное свойство

languages of the form
protected array $_languageArray
Результат array

$_optionArray защищенное свойство

options of the form
protected array $_optionArray
Результат array

$_registry защищенное свойство

instance of the registry class
protected object $_registry
Результат object