Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CCacheDependency
  • CChainedCacheDependency
  • CDbCacheDependency
  • CDirectoryCacheDependency
  • CExpressionDependency
  • CFileCacheDependency
  • CGlobalStateCacheDependency
  • Overview
  • Package
  • Class
  • Tree

Class CGlobalStateCacheDependency

CGlobalStateCacheDependency represents a dependency based on a global state value.

CGlobalStateCacheDependency 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 CGlobalStateCacheDependency::$stateName to the name of the global state.

CComponent
Extended by CCacheDependency implements ICacheDependency
Extended by CGlobalStateCacheDependency
Package: system\caching\dependencies
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CGlobalStateCacheDependency.php
Methods summary
public
# __construct( string $name = null )

Constructor.

Constructor.

Parameters

$name
string
$name the name of the global state
protected mixed
# generateDependentData( )

Generates the data needed to determine if dependency has been changed. This method returns the value of the global state.

Generates the data needed to determine if dependency has been changed. This method returns the value of the global state.

Returns

mixed
the data needed to determine if dependency has been changed.

Throws

CException
if CGlobalStateCacheDependency::$stateName is empty

Overrides

CCacheDependency::generateDependentData()
Methods inherited from CCacheDependency
evaluateDependency(), getDependentData(), getHasChanged(), resetReusableData()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties summary
public string $stateName
#

the name of the global state whose value is to check if the dependency has changed.

the name of the global state whose value is to check if the dependency has changed.

See

CApplication::setGlobalState()
Properties inherited from CCacheDependency
$reuseDependentData
Magic properties inherited from CCacheDependency
$dependentData, $hasChanged
API documentation generated by ApiGen 2.8.0