MediaWiki
REL1_39
GlobalDependency.php
Go to the documentation of this file.
1
<?php
26
class
GlobalDependency
extends
CacheDependency
{
27
private
$name;
28
private
$value;
29
30
public
function
__construct
( $name ) {
31
$this->name = $name;
32
$this->value = $GLOBALS[$name];
33
}
34
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:26
GlobalDependency\isExpired
isExpired()
Definition
GlobalDependency.php:38
GlobalDependency\__construct
__construct( $name)
Definition
GlobalDependency.php:30
includes
language
dependency
GlobalDependency.php
Generated on Fri Nov 29 2024 06:23:14 for MediaWiki by
1.10.0