Class 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 StateName to the name of the global state.
Constructor Summary |
public |
Constructor.
|
Method Summary |
boolean
|
Performs the actual dependency checking.
|
string
|
|
void
|
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Constructor.
|
Method Details |
getHasChanged
public boolean getHasChanged |
() |
Performs the actual dependency checking.
This method returns true if the specified global state is changed.
Output |
boolean
| whether the dependency is changed or not. |
Exception |
|
getStateName
public string getStateName |
() |
Output |
string
| the name of the global state |
Exception |
|
setStateName
public void setStateName |
(string $value ) |
Input |
string | $value | the name of the global state |
Output |
Exception |
|
|