MediaWiki master
|
Depend on a file. More...
Inherits CacheDependency.
Public Member Functions | |
__construct ( $filename, $timestamp=null) | |
Create a file dependency. | |
__sleep () | |
isExpired () | |
Returns true if the dependency is expired, false otherwise. | |
loadDependencyValues () | |
Hook to perform any expensive pre-serialize loading of dependency values. | |
FileDependency::__construct | ( | $filename, | |
$timestamp = null ) |
Create a file dependency.
string | $filename | The name of the file, preferably fully qualified |
null | false | int | $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 49 of file FileDependency.php.
FileDependency::__sleep | ( | ) |
FileDependency::isExpired | ( | ) |
Returns true if the dependency is expired, false otherwise.
Reimplemented from CacheDependency.
Definition at line 73 of file FileDependency.php.
References wfDebug().
FileDependency::loadDependencyValues | ( | ) |
Hook to perform any expensive pre-serialize loading of dependency values.
Reimplemented from CacheDependency.
Definition at line 63 of file FileDependency.php.
Referenced by __sleep().