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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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 )