MediaWiki
REL1_35
ConstantDependency.php
Go to the documentation of this file.
1
<?php
27
class
ConstantDependency
extends
CacheDependency
{
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
}
CacheDependency
Stable to extend.
Definition
CacheDependency.php:28
ConstantDependency
Definition
ConstantDependency.php:27
ConstantDependency\$value
$value
Definition
ConstantDependency.php:29
ConstantDependency\__construct
__construct( $name)
Definition
ConstantDependency.php:31
ConstantDependency\isExpired
isExpired()
Definition
ConstantDependency.php:39
ConstantDependency\$name
$name
Definition
ConstantDependency.php:28
includes
cache
dependency
ConstantDependency.php
Generated on Sat Apr 6 2024 00:06:58 for MediaWiki by
1.9.8