PHP Class Prado\Web\UI\TControlAdapter

TControlAdapter is the base class for adapters that customize various behaviors for the control to which the adapter is attached.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TApplicationComponent
ファイルを表示 Open project: pradosoft/prado Class Usage Examples

Protected Properties

Property Type Description
$_control the control to which the adapter is attached

Public Methods

Method Description
__construct ( $control ) Constructor.
createChildControls ( ) Creates child controls for the attached control.
getControl ( ) : TControl
getPage ( ) : TPage
loadState ( ) Loads additional persistent control state.
onInit ( $param ) This method is invoked when the control enters 'OnInit' stage.
onLoad ( $param ) This method is invoked when the control enters 'OnLoad' stage.
onPreRender ( $param ) This method is invoked when the control enters 'OnPreRender' stage.
onUnload ( $param ) This method is invoked when the control enters 'OnUnload' stage.
render ( $writer ) This method is invoked when the control renders itself.
renderChildren ( $writer ) Renders the control's children.
saveState ( ) Saves additional persistent control state.

Method Details

__construct() public method

Constructor.
public __construct ( $control )

createChildControls() public method

Default implementation calls the attached control's corresponding method.
public createChildControls ( )

getControl() public method

public getControl ( ) : TControl
return TControl the control to which this adapter is attached

getPage() public method

public getPage ( ) : TPage
return TPage the page that contains the attached control

loadState() public method

Default implementation calls the attached control's corresponding method.
public loadState ( )

onInit() public method

Default implementation calls the attached control's corresponding method.
public onInit ( $param )

onLoad() public method

Default implementation calls the attached control's corresponding method.
public onLoad ( $param )

onPreRender() public method

Default implementation calls the attached control's corresponding method.
public onPreRender ( $param )

onUnload() public method

Default implementation calls the attached control's corresponding method.
public onUnload ( $param )

render() public method

Default implementation calls the attached control's corresponding method.
public render ( $writer )

renderChildren() public method

Default implementation calls the attached control's corresponding method.
public renderChildren ( $writer )

saveState() public method

Default implementation calls the attached control's corresponding method.
public saveState ( )

Property Details

$_control protected_oe property

the control to which the adapter is attached
protected $_control