MediaWiki  1.28.0
FileDependency Class Reference
Inheritance diagram for FileDependency:
Collaboration diagram for FileDependency:

Public Member Functions

 __construct ($filename, $timestamp=null)
 Create a file dependency. More...
 
 __sleep ()
 
 isExpired ()
 
 loadDependencyValues ()
 
- Public Member Functions inherited from CacheDependency
 isExpired ()
 Returns true if the dependency is expired, false otherwise. More...
 
 loadDependencyValues ()
 Hook to perform any expensive pre-serialize loading of dependency values. More...
 

Private Attributes

 $filename
 
 $timestamp
 

Detailed Description

Definition at line 153 of file CacheDependency.php.

Constructor & Destructor Documentation

FileDependency::__construct (   $filename,
  $timestamp = null 
)

Create a file dependency.

Parameters
string$filenameThe name of the file, preferably fully qualified
null | bool | int$timestampThe unix last modified timestamp, or false if the file does not exist. If omitted, the timestamp will be loaded from the file.

A dependency on a nonexistent file will be triggered when the file is created. A dependency on an existing file will be triggered when the file is changed.

Definition at line 169 of file CacheDependency.php.

References $filename, and $timestamp.

Member Function Documentation

FileDependency::__sleep ( )
Returns
array

Definition at line 177 of file CacheDependency.php.

References loadDependencyValues().

FileDependency::isExpired ( )
Returns
bool

Definition at line 196 of file CacheDependency.php.

References wfDebug().

FileDependency::loadDependencyValues ( )

Definition at line 183 of file CacheDependency.php.

Referenced by __sleep().

Member Data Documentation

FileDependency::$filename
private

Definition at line 154 of file CacheDependency.php.

Referenced by __construct().

FileDependency::$timestamp
private

Definition at line 155 of file CacheDependency.php.

Referenced by __construct().


The documentation for this class was generated from the following file: