FileDependency Class Reference
[Cache]

Inherits CacheDependency.

List of all members.

Public Member Functions

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

Public Attributes

 $filename
 $timestamp


Detailed Description

Definition at line 117 of file CacheDependency.php.


Constructor & Destructor Documentation

FileDependency::__construct ( filename,
timestamp = null 
)

Create a file dependency.

Parameters:
string $filename The name of the file, preferably fully qualified
mixed $timestamp The 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 132 of file CacheDependency.php.

References $filename, and $timestamp.


Member Function Documentation

FileDependency::isExpired (  ) 

Returns true if the dependency is expired, false otherwise.

Reimplemented from CacheDependency.

Definition at line 149 of file CacheDependency.php.

References wfDebug().

FileDependency::loadDependencyValues (  ) 

Hook to perform any expensive pre-serialize loading of dependency values.

Reimplemented from CacheDependency.

Definition at line 137 of file CacheDependency.php.


Member Data Documentation

FileDependency::$filename

Definition at line 118 of file CacheDependency.php.

Referenced by __construct().

FileDependency::$timestamp

Definition at line 118 of file CacheDependency.php.

Referenced by __construct().


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

Generated on Sat Sep 5 02:08:37 2009 for MediaWiki by  doxygen 1.5.9