PHP 클래스 Prado\Web\UI\ActiveControls\TCallbackPageStateTracker

Tracking changes to the page state during callback.
부터: 3.1
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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