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 CChainedCacheDependency

CChainedCacheDependency represents a list of cache dependencies.

If any of the dependencies reports a dependency change, CChainedCacheDependency will return true for the checking.

To add dependencies to CChainedCacheDependency, use getDependencies Dependencies which gives a CTypedList instance and can be used like an array (see CList for more details}).

CComponent
Extended by CChainedCacheDependency implements ICacheDependency
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/CChainedCacheDependency.php
Methods summary
public
# __construct( array $dependencies = array() )

Constructor.

Constructor.

Parameters

$dependencies
array
$dependencies the dependencies to be added to this chain.

Since

1.1.4
public CTypedList
# getDependencies( )

Returns

CTypedList
list of dependency objects
public
# setDependencies( array $values )

Parameters

$values
array
$values list of dependency objects or configurations to be added to this chain. If a dependency is specified as a configuration, it must be an array that can be recognized by YiiBase::createComponent().
public
# evaluateDependency( )

Evaluates the dependency by generating and saving the data related with dependency.

Evaluates the dependency by generating and saving the data related with dependency.

Implementation of

ICacheDependency::evaluateDependency()
public boolean
# getHasChanged( )

Performs the actual dependency checking. This method returns true if any of the dependency objects reports a dependency change.

Performs the actual dependency checking. This method returns true if any of the dependency objects reports a dependency change.

Returns

boolean
whether the dependency is changed or not.

Implementation of

ICacheDependency::getHasChanged()
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()
Magic properties summary
public CTypedList $dependencies
#

List of dependency objects.

List of dependency objects.

public boolean $hasChanged
#

Whether the dependency is changed or not.

Whether the dependency is changed or not.

API documentation generated by ApiGen 2.8.0