PHP 클래스 Prado\Web\UI\WebControls\THiddenField

THiddenField displays a hidden input field on a Web page. The value of the input field can be accessed via {@link getValue Value} property. If upon postback the value is changed, a {@link onValueChanged OnValueChanged} event will be raised.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\Web\UI\TControl, implements Prado\Web\UI\IPostBackDataHandler, implements Prado\Web\UI\IValidatable, implements Prado\IDataRenderer
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
focus ( ) Sets focus to this control.
getData ( ) : string Returns the value of the hidden field.
getDataChanged ( ) : boolean Returns a value indicating whether postback has caused the control data change.
getEnableTheming ( ) : boolean
getIsValid ( ) : boolean Returns true if this control validated successfully.
getValidationPropertyValue ( ) : mixed Returns the value to be validated.
getValue ( ) : string
loadPostData ( $key, $values ) : boolean Loads hidden field data.
onValueChanged ( $param ) This method is invoked when the value of the {@link getValue Value} property changes between posts to the server.
raisePostDataChangedEvent ( ) Raises postdata changed event.
render ( $writer ) Renders the control.
setData ( $value ) Sets the value of the hidden field.
setEnableTheming ( $value )
setIsValid ( $value )
setSkinID ( $value )
setValue ( $value ) Sets the value of the THiddenField

보호된 메소드들

메소드 설명
getTagName ( ) : string

메소드 상세

focus() 공개 메소드

This method overrides the parent implementation by forbidding setting focus to this control.
public focus ( )

getData() 공개 메소드

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link getValue()}.
또한 보기: getValue
부터: 3.1.0
public getData ( ) : string
리턴 string value of the hidden field

getDataChanged() 공개 메소드

This method is required by the \Prado\Web\UI\IPostBackDataHandler interface.
public getDataChanged ( ) : boolean
리턴 boolean whether postback has caused the control data change. False if the page is not in postback mode.

getEnableTheming() 공개 메소드

public getEnableTheming ( ) : boolean
리턴 boolean whether theming is enabled for this control. Defaults to false.

getIsValid() 공개 메소드

Defaults to true.
public getIsValid ( ) : boolean
리턴 boolean wether this control validated successfully.

getTagName() 보호된 메소드

protected getTagName ( ) : string
리턴 string tag name of the hidden field.

getValidationPropertyValue() 공개 메소드

This methid is required by \Prado\Web\UI\IValidatable interface.
public getValidationPropertyValue ( ) : mixed
리턴 mixed the value of the property to be validated.

getValue() 공개 메소드

public getValue ( ) : string
리턴 string the value of the THiddenField

loadPostData() 공개 메소드

This method is primarly used by framework developers.
public loadPostData ( $key, $values ) : boolean
리턴 boolean whether the data of the component has been changed

onValueChanged() 공개 메소드

The method raises 'OnValueChanged' event to fire up the event delegates. If you override this method, be sure to call the parent implementation so that the attached event handlers can be invoked.
public onValueChanged ( $param )

raisePostDataChangedEvent() 공개 메소드

This method calls {@link onValueChanged} method. This method is primarly used by framework developers.

render() 공개 메소드

This method overrides the parent implementation by rendering the hidden field input element.
public render ( $writer )

setData() 공개 메소드

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link setValue()}.
또한 보기: setValue
부터: 3.1.0
public setData ( $value )

setEnableTheming() 공개 메소드

public setEnableTheming ( $value )

setIsValid() 공개 메소드

public setIsValid ( $value )

setSkinID() 공개 메소드

public setSkinID ( $value )

setValue() 공개 메소드

Sets the value of the THiddenField
public setValue ( $value )