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 CFileCacheDependency

CFileCacheDependency represents a dependency based on a file's last modification time.

CFileCacheDependency performs dependency checking based on the last modification time of the file specified via CFileCacheDependency::$fileName. The dependency is reported as unchanged if and only if the file's last modification time remains unchanged.

CComponent
Extended by CCacheDependency implements ICacheDependency
Extended by CFileCacheDependency
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/CFileCacheDependency.php
Methods summary
public
# __construct( string $fileName = null )

Constructor.

Constructor.

Parameters

$fileName
string
$fileName name of the file whose change is to be checked.
protected mixed
# generateDependentData( )

Generates the data needed to determine if dependency has been changed. This method returns the file's last modification time.

Generates the data needed to determine if dependency has been changed. This method returns the file's last modification time.

Returns

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

Throws

CException
if CFileCacheDependency::$fileName 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 $fileName
#

the name of the file whose last modification time is used to check if the dependency has been changed.

the name of the file whose last modification time is used to check if the dependency has been changed.

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