PHP Class Prado\Web\UI\ActiveControls\TBaseActiveControl

The {@link setEnableUpdate EnableUpdate} property determines wether the active control is allowed to update the contents of the client-side when the callback response returns.
Since: 3.1
Inheritance: extends Prado\TComponent
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
__construct ( $control ) Constructor. Attach a base active control to an active control instance.
canUpdateClientSide ( $bDontRequireVisibility = false ) : boolean Returns true if callback response is allowed to update the browser contents.
getEnableUpdate ( ) : boolean
setEnableUpdate ( $value )

Méthodes protégées

Méthode Description
getControl ( ) : TControl
getOption ( $name, $default = null ) : mixed Gets an option named value. Options are used to store and retrive named values for the base active controls.
getOptions ( ) : TMap
getPage ( ) : TPage
setOption ( $name, $value, $default = null ) : mixed Sets a named options with a value. Options are used to store and retrive named values for the base active controls.

Method Details

__construct() public méthode

Constructor. Attach a base active control to an active control instance.
public __construct ( $control )

canUpdateClientSide() public méthode

Is is true if the control is initilized, and is a callback request and the {@link setEnableUpdate EnableUpdate} property is true and the page is not loading post data.
public canUpdateClientSide ( $bDontRequireVisibility = false ) : boolean
Résultat boolean true if the callback response is allowed update client-side contents.

getControl() protected méthode

protected getControl ( ) : TControl
Résultat Prado\Web\UI\TControl the attached control.

getEnableUpdate() public méthode

public getEnableUpdate ( ) : boolean
Résultat boolean true to allow fine grain callback updates.

getOption() protected méthode

Gets an option named value. Options are used to store and retrive named values for the base active controls.
protected getOption ( $name, $default = null ) : mixed
Résultat mixed options value.

getOptions() protected méthode

protected getOptions ( ) : TMap
Résultat Prado\Collections\TMap active control options

getPage() protected méthode

protected getPage ( ) : TPage
Résultat TPage the page containing the attached control.

setEnableUpdate() public méthode

public setEnableUpdate ( $value )

setOption() protected méthode

Sets a named options with a value. Options are used to store and retrive named values for the base active controls.
protected setOption ( $name, $value, $default = null ) : mixed
Résultat mixed options value.