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

List of all members.

Public Member Functions

 __construct ($filename, $timestamp=null)
 Create a file dependency.
 __sleep ()
 isExpired ()
 loadDependencyValues ()
 Hook to perform any expensive pre-serialize loading of dependency values.

Public Attributes

 $filename
 $timestamp

Detailed Description

Definition at line 129 of file CacheDependency.php.


Constructor & Destructor Documentation

FileDependency::__construct ( filename,
timestamp = null 
)

Create a file dependency.

Parameters:
$filenameString: the name of the file, preferably fully qualified
$timestampMixed: 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 144 of file CacheDependency.php.

References $filename, and $timestamp.


Member Function Documentation

Returns:
array

Definition at line 152 of file CacheDependency.php.

References loadDependencyValues().

Here is the call graph for this function:

Returns:
bool

Reimplemented from CacheDependency.

Definition at line 172 of file CacheDependency.php.

References wfDebug().

Here is the call graph for this function:

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

Reimplemented from CacheDependency.

Definition at line 157 of file CacheDependency.php.

Referenced by __sleep().

Here is the caller graph for this function:


Member Data Documentation

FileDependency::$filename

Definition at line 130 of file CacheDependency.php.

Referenced by __construct().

FileDependency::$timestamp

Definition at line 130 of file CacheDependency.php.

Referenced by __construct().


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