MediaWiki
master
ConstantDependency.php
Go to the documentation of this file.
1
<?php
26
class
ConstantDependency
extends
CacheDependency
{
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
}
CacheDependency
Base class to represent dependencies for LocalisationCache entries.
Definition
CacheDependency.php:27
ConstantDependency
Depend on a PHP constant.
Definition
ConstantDependency.php:26
ConstantDependency\__construct
__construct( $name)
Definition
ConstantDependency.php:32
ConstantDependency\isExpired
isExpired()
Definition
ConstantDependency.php:40
includes
language
dependency
ConstantDependency.php
Generated on Tue Oct 15 2024 02:24:10 for MediaWiki by
1.10.0