PHP Класс Prado\Web\UI\TForm

TForm displays an HTML form. Besides regular body content, it displays hidden fields, javascript blocks and files that are registered through {@link TClientScriptManager}. A TForm is required for a page that needs postback. Each page can contain at most one TForm. If multiple HTML forms are needed, please use regular HTML form tags for those forms that post to different URLs.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TControl
Показать файл Открыть проект

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

Метод Описание
getDefaultButton ( ) : string
getEnctype ( ) : string
getMethod ( ) : string
getName ( ) : string
onInit ( $param ) Registers the form with the page.
render ( $writer ) Renders the form.
setDefaultButton ( $value ) Sets a button to be default one in a form.
setEnctype ( $value )
setMethod ( $value )

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

Метод Описание
addAttributesToRender ( $writer ) Adds form specific attributes to renderer.

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

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

Adds form specific attributes to renderer.
protected addAttributesToRender ( $writer )

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

public getDefaultButton ( ) : string
Результат string id path to the default button control.

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

public getEnctype ( ) : string
Результат string the encoding type a browser uses to post data back to the server

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

public getMethod ( ) : string
Результат string form submission method. Defaults to 'post'.

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

public getName ( ) : string
Результат string form name, which is equal to {@link getUniqueID UniqueID}.

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

Registers the form with the page.
public onInit ( $param )

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

Renders the form.
public render ( $writer )

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

A default button will be clicked if a user presses 'Enter' key within the form.
public setDefaultButton ( $value )

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

public setEnctype ( $value )

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

public setMethod ( $value )