MediaWiki  master
ConstantDependency.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 = constant( $name );
33  }
34 
38  public function isExpired() {
39  return constant( $this->name ) != $this->value;
40  }
41 }
Base class to represent dependencies for LocalisationCache entries.
Depend on a PHP constant.