## Class TGlobalStateCacheDependency

Description

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.

- since: 3.1.0
- version: $Id: TCache.php 1565 2006-12-05 20:38:18Z xue $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Caching/TCache.php (line 507)

    TComponent
       |
       --TCacheDependency
          |
          --TGlobalStateCacheDependency

Method Summary
TGlobalStateCacheDependency __construct (string $name)
boolean getHasChanged ()
string getStateName ()
void setStateName (string $value)
Methods
Constructor __construct (line 516)

Constructor.

- access: public

TGlobalStateCacheDependency __construct (string $name)

- string $name: the name of the global state

getHasChanged (line 544)

Performs the actual dependency checking.

This method returns true if the specified global state is changed.

- return: whether the dependency is changed or not.
- access: public

boolean getHasChanged ()
getStateName (line 524)

- return: the name of the global state
- access: public

string getStateName ()
setStateName (line 533)

- access: public
- see: TApplication::setGlobalState

void setStateName (string $value)

- string $value: the name of the global state

#### Inherited 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()

Documentation generated on Sun, 14 Jan 2007 21:41:22 -0500 by phpDocumentor 1.3.0RC4