MediaWiki
master
GlobalDependency.php
Go to the documentation of this file.
1
<?php
27
class
GlobalDependency
extends
CacheDependency
{
29
private
$name;
31
private
$value;
32
33
public
function
__construct
( $name ) {
34
$this->name = $name;
35
$this->value = $GLOBALS[$name];
36
}
37
38
public
function
isExpired
() {
39
if
( !isset( $GLOBALS[$this->name] ) ) {
40
return
true
;
41
}
42
43
return
$GLOBALS[$this->name] != $this->value;
44
}
45
}
CacheDependency
Base class to represent dependencies for LocalisationCache entries.
Definition
CacheDependency.php:27
GlobalDependency
Depend on a PHP global variable.
Definition
GlobalDependency.php:27
GlobalDependency\isExpired
isExpired()
Returns true if the dependency is expired, false otherwise.
Definition
GlobalDependency.php:38
GlobalDependency\__construct
__construct( $name)
Definition
GlobalDependency.php:33
includes
language
dependency
GlobalDependency.php
Generated on Mon Dec 30 2024 14:24:19 for MediaWiki by
1.10.0