Class \Prado\Caching\TGlobalStateCacheDependency
TGlobalStateCacheDependency class.
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 \Prado\Caching\setStateName to the name of the global state.
Class hierarchy
- \Prado\Caching\TGlobalStateCacheDependency
- \Prado\Caching\TCacheDependency implements ICacheDependency
- \Prado\TComponent
Since: 3.1.0
public
|
|
public
|
getHasChanged() : bool
Performs the actual dependency checking.
This method returns true if the specified global state is changed. |
public
|
|
public
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |