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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

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

Method Details

__construct() public méthode

Constructor.
public __construct ( $name )

getHasChanged() public méthode

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

getStateName() public méthode

public getStateName ( ) : string
Résultat string the name of the global state

setStateName() public méthode

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