PHP Class Prado\Web\UI\ActiveControls\TActiveControlAdapter

Customize the parent TControl class for active control classes. TActiveControlAdapter instantiates a common base active control class throught the {@link getBaseActiveControl BaseActiveControl} property. The type of BaseActiveControl can be provided in the second parameter in the constructor. Default is TBaseActiveControl or TBaseActiveCallbackControl if the control adapted implements ICallbackEventHandler. TActiveControlAdapter will tracking viewstate changes to update the corresponding client-side properties.
Since: 3.1
Inheritance: extends Prado\Web\UI\TControlAdapter
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Prado\Web\UI\ActiveControls\IActiveControl $control, $baseCallbackClass = null ) Constructor.
getBaseActiveControl ( ) : TBaseActiveControl
getStateTracker ( ) : TCallbackPageStateTracker
onLoad ( $param ) Starts viewstate tracking if necessary after when controls has been loaded
onPreRender ( $param ) Publish the ajax script
render ( $writer ) Renders the callback client scripts.
saveState ( ) Saves additional persistent control state. Respond to viewstate changes if necessary.
setBaseActiveControl ( $control )
setStateTracker ( $value )

Méthodes protégées

Méthode Description
getIsTrackingPageState ( ) : boolean
setBaseControlClass ( $type )

Method Details

__construct() public méthode

Constructor.
public __construct ( Prado\Web\UI\ActiveControls\IActiveControl $control, $baseCallbackClass = null )
$control Prado\Web\UI\ActiveControls\IActiveControl

getBaseActiveControl() public méthode

public getBaseActiveControl ( ) : TBaseActiveControl
Résultat TBaseActiveControl Common active control options.

getIsTrackingPageState() protected méthode

protected getIsTrackingPageState ( ) : boolean
Résultat boolean true if the viewstate needs to be tracked.

getStateTracker() public méthode

public getStateTracker ( ) : TCallbackPageStateTracker
Résultat TCallbackPageStateTracker state tracker.

onLoad() public méthode

Starts viewstate tracking if necessary after when controls has been loaded
public onLoad ( $param )

onPreRender() public méthode

Publish the ajax script
public onPreRender ( $param )

render() public méthode

Renders the callback client scripts.
public render ( $writer )

saveState() public méthode

Saves additional persistent control state. Respond to viewstate changes if necessary.
public saveState ( )

setBaseActiveControl() public méthode

public setBaseActiveControl ( $control )

setBaseControlClass() protected méthode

protected setBaseControlClass ( $type )

setStateTracker() public méthode

public setStateTracker ( $value )