MediaWiki master
ConstantDependency.php
Go to the documentation of this file.
1<?php
28 private $name;
30 private $value;
31
32 public function __construct( $name ) {
33 $this->name = $name;
34 $this->value = constant( $name );
35 }
36
40 public function isExpired() {
41 return constant( $this->name ) != $this->value;
42 }
43}
Base class to represent dependencies for LocalisationCache entries.
Depend on a PHP constant.