PHP Class Prado\Caching\TGlobalStateCacheDependency

TGlobalStateCacheDependency checks if a global state is changed or not. If the global state is changed, the dependency is reported as changed. To specify which global state this dependency should check with, set {@link setStateName StateName} to the name of the global state.
Since: 3.1.0
Author: Qiang Xue ([email protected])
Inheritance: extends TCacheDependency
Show file Open project: pradosoft/prado

Public Methods

Method Description
__construct ( $name ) Constructor.
getHasChanged ( ) : boolean Performs the actual dependency checking.
getStateName ( ) : string
setStateName ( $value )

Method Details

__construct() public method

Constructor.
public __construct ( $name )

getHasChanged() public method

This method returns true if the specified global state is changed.
public getHasChanged ( ) : boolean
return boolean whether the dependency is changed or not.

getStateName() public method

public getStateName ( ) : string
return string the name of the global state

setStateName() public method

See also: TApplication::setGlobalState
public setStateName ( $value )