MediaWiki REL1_39
GlobalDependency.php
Go to the documentation of this file.
1<?php
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}
Base class to represent dependencies for LocalisationCache entries.
Depend on a PHP global variable.