PHP 클래스 Prado\Web\UI\ActiveControls\TBaseActiveCallbackControl

The properties of TBaseActiveCallbackControl can be accessed and changed from each individual active controls' {@link getActiveControl ActiveControl} property. The following example sets the validation group property of a TCallback component. Additional client-side options and events can be set using the {@link getClientSide ClientSide} property. The following example shows an alert box when a TCallback component response returns successfully.
부터: 3.1
상속: extends TBaseActiveControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
canCauseValidation ( ) : boolean
getCallbackOptions ( ) : string
getCallbackParameter ( ) : mixed
getCausesValidation ( ) : boolean
getClientSide ( ) : TCallbackClientSide Callback client-side options can be set by setting the properties of the ClientSide property. E.g.
getJavascript ( ) : string Returns the javascript callback request instance. To invoke a callback request for this control call the dispatch() method on the request instance. Example code in javascript var request = <%= $this->mycallback->ActiveControl->Javascript %>; request.setParameter('hello'); request.dispatch(); //make the callback request.
getJsCallbackOptions ( )
getValidationGroup ( ) : string
registerCallbackClientScript ( $class, $options = null ) Registers the callback control javascript code. Client-side options are merged and passed to the javascript code. This method should be called by Active component developers wanting to register the javascript to initialize the active component with additional options offered by the {@link getClientSide ClientSide} property.
setCallbackOptions ( $value ) Sets default callback options. Takes the ID of a TCallbackOptions component to duplicate the client-side options for this control. The {@link getClientSide ClientSide} subproperties takes precedence over the CallbackOptions property.
setCallbackParameter ( $value )
setCausesValidation ( $value )
setClientSide ( $client ) Sets the client side options. Can only be set when client side is null.
setValidationGroup ( $value )

보호된 메소드들

메소드 설명
createClientSide ( ) : TCallbackClientSide
getClientSideOptions ( ) : array
getDefaultClientSideOptions ( ) : array Returns an array of default callback client-side options. The default options are obtained from the client-side options of a TCallbackOptions control with ID specified by {@link setCallbackOptions CallbackOptions}.

메소드 상세

canCauseValidation() 공개 메소드

public canCauseValidation ( ) : boolean
리턴 boolean whether to perform validation if the callback is requested.

createClientSide() 보호된 메소드

protected createClientSide ( ) : TCallbackClientSide
리턴 TCallbackClientSide callback client-side options.

getCallbackOptions() 공개 메소드

public getCallbackOptions ( ) : string
리턴 string ID of a TCallbackOptions control from which ClientSide options are duplicated.

getCallbackParameter() 공개 메소드

public getCallbackParameter ( ) : mixed
리턴 mixed callback parameter value.

getCausesValidation() 공개 메소드

public getCausesValidation ( ) : boolean
리턴 boolean whether callback event trigger by this button will cause input validation, default is true

getClientSide() 공개 메소드

.." /> See {@link TCallbackClientSide} for details on the properties of ClientSide.
public getClientSide ( ) : TCallbackClientSide
리턴 TCallbackClientSide client-side callback options.

getClientSideOptions() 보호된 메소드

protected getClientSideOptions ( ) : array
리턴 array list of callback javascript options.

getDefaultClientSideOptions() 보호된 메소드

Returns an array of default callback client-side options. The default options are obtained from the client-side options of a TCallbackOptions control with ID specified by {@link setCallbackOptions CallbackOptions}.
protected getDefaultClientSideOptions ( ) : array
리턴 array list of default callback client-side options.

getJavascript() 공개 메소드

Alternatively, dispatches immediately Prado.Callback("<%= $this->mycallback->UniqueID %>", $this->mycallback->ActiveControl->JsCallbackOptions);
public getJavascript ( ) : string
리턴 string javascript client-side callback request object (javascript code)

getJsCallbackOptions() 공개 메소드

getValidationGroup() 공개 메소드

public getValidationGroup ( ) : string
리턴 string the group of validators which the button causes validation upon callback

registerCallbackClientScript() 공개 메소드

Registers the callback control javascript code. Client-side options are merged and passed to the javascript code. This method should be called by Active component developers wanting to register the javascript to initialize the active component with additional options offered by the {@link getClientSide ClientSide} property.
public registerCallbackClientScript ( $class, $options = null )

setCallbackOptions() 공개 메소드

Sets default callback options. Takes the ID of a TCallbackOptions component to duplicate the client-side options for this control. The {@link getClientSide ClientSide} subproperties takes precedence over the CallbackOptions property.
public setCallbackOptions ( $value )

setCallbackParameter() 공개 메소드

public setCallbackParameter ( $value )

setCausesValidation() 공개 메소드

public setCausesValidation ( $value )

setClientSide() 공개 메소드

Sets the client side options. Can only be set when client side is null.
public setClientSide ( $client )

setValidationGroup() 공개 메소드

public setValidationGroup ( $value )