MediaWiki REL1_37
ConstantDependency.php
Go to the documentation of this file.
1<?php
28 private $name;
29 private $value;
30
31 public function __construct( $name ) {
32 $this->name = $name;
33 $this->value = constant( $name );
34 }
35
39 public function isExpired() {
40 return constant( $this->name ) != $this->value;
41 }
42}