PHP Класс Prado\Web\UI\ActiveControls\TCallbackPageStateTracker

Tracking changes to the page state during callback.
С версии: 3.1
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_control the control tracked

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

Метод Описание
__construct ( $control ) Constructor. Add a set of default states to track.
respondToChanges ( ) For each of the changes call the corresponding change handlers.
trackChanges ( ) Start tracking view state changes. The clone function on objects are called for those viewstate having an object as value.

Защищенные методы

Метод Описание
addStatesToTrack ( ) Add a list of view states to track. Each state is added to the StatesToTrack property with the view state name as key.
client ( ) : TCallbackClientScript
getChanges ( ) : array
getStatesToTrack ( ) : TMap
updateAccessKey ( $value ) Updates the modifier access key
updateAttributes ( $attributes ) Updates/adds a list of attributes on the control.
updateEnabled ( $enable ) Enables or Disables the control on the client-side.
updateStyle ( $style ) Updates the CSS style on the control on the client-side.
updateTabIndex ( $value ) Updates the tab index.
updateToolTip ( $value ) Updates the tooltip.
updateVisible ( $visible ) Hides or shows the control on the client-side. The control must be already rendered on the client-side.

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

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

Constructor. Add a set of default states to track.
public __construct ( $control )

addStatesToTrack() защищенный Метод

The value should be an array with two enteries. The first entery is the name of the class that will calculate the state differences. The second entry is a php function/method callback that handles the changes in the viewstate.
protected addStatesToTrack ( )

client() защищенный Метод

protected client ( ) : TCallbackClientScript
Результат TCallbackClientScript callback client scripting

getChanges() защищенный Метод

protected getChanges ( ) : array
Результат array list of viewstate and the changed data.

getStatesToTrack() защищенный Метод

protected getStatesToTrack ( ) : TMap
Результат Prado\Collections\TMap list of viewstates to track.

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

For each of the changes call the corresponding change handlers.
public respondToChanges ( )

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

Start tracking view state changes. The clone function on objects are called for those viewstate having an object as value.
public trackChanges ( )

updateAccessKey() защищенный Метод

Updates the modifier access key
protected updateAccessKey ( $value )

updateAttributes() защищенный Метод

Updates/adds a list of attributes on the control.
protected updateAttributes ( $attributes )

updateEnabled() защищенный Метод

Enables or Disables the control on the client-side.
protected updateEnabled ( $enable )

updateStyle() защищенный Метод

Updates the CSS style on the control on the client-side.
protected updateStyle ( $style )

updateTabIndex() защищенный Метод

Updates the tab index.
protected updateTabIndex ( $value )

updateToolTip() защищенный Метод

Updates the tooltip.
protected updateToolTip ( $value )

updateVisible() защищенный Метод

Hides or shows the control on the client-side. The control must be already rendered on the client-side.
protected updateVisible ( $visible )

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

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

the control tracked
protected $_control