PHP Класс Prado\Web\UI\TControlAdapter

TControlAdapter is the base class for adapters that customize various behaviors for the control to which the adapter is attached.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends Prado\TApplicationComponent
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_control the control to which the adapter is attached

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( $control )

createChildControls() публичный Метод

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

getControl() публичный Метод

public getControl ( ) : TControl
Результат TControl the control to which this adapter is attached

getPage() публичный Метод

public getPage ( ) : TPage
Результат TPage the page that contains the attached control

loadState() публичный Метод

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

onInit() публичный Метод

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

onLoad() публичный Метод

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

onPreRender() публичный Метод

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

onUnload() публичный Метод

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

render() публичный Метод

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

renderChildren() публичный Метод

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

saveState() публичный Метод

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

Описание свойств

$_control защищенное свойство

the control to which the adapter is attached
protected $_control