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 CExpressionDependency

CExpressionDependency represents a dependency based on the result of a PHP expression.

CExpressionDependency performs dependency checking based on the result of a PHP CExpressionDependency::$expression. The dependency is reported as unchanged if and only if the result is the same as the one evaluated when storing the data to cache.

CComponent
Extended by CCacheDependency implements ICacheDependency
Extended by CExpressionDependency
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/CExpressionDependency.php
Methods summary
public
# __construct( string $expression = 'true' )

Constructor.

Constructor.

Parameters

$expression
string
$expression the PHP expression whose result is used to determine the dependency.
protected mixed
# generateDependentData( )

Generates the data needed to determine if dependency has been changed. This method returns the result of the PHP expression.

Generates the data needed to determine if dependency has been changed. This method returns the result of the PHP expression.

Returns

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

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 $expression
#

the PHP expression whose result is used to determine the dependency. The expression can also be a valid serializable PHP callback. It will be passed with a parameter which is the dependency object itself.

The PHP expression will be evaluated using CComponent::evaluateExpression().

A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual.

the PHP expression whose result is used to determine the dependency. The expression can also be a valid serializable PHP callback. It will be passed with a parameter which is the dependency object itself.

The PHP expression will be evaluated using CComponent::evaluateExpression().

A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual.

Properties inherited from CCacheDependency
$reuseDependentData
Magic properties inherited from CCacheDependency
$dependentData, $hasChanged
API documentation generated by ApiGen 2.8.0