MediaWiki
REL1_41
ConstantDependency.php
Go to the documentation of this file.
1
<?php
26
class
ConstantDependency
extends
CacheDependency
{
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
}
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:30
ConstantDependency\isExpired
isExpired()
Definition
ConstantDependency.php:38
includes
language
dependency
ConstantDependency.php
Generated on Wed Nov 27 2024 07:23:39 for MediaWiki by
1.10.0