MediaWiki
1.34.0
ConstantDependency.php
Go to the documentation of this file.
1
<?php
27
class
ConstantDependency
extends
CacheDependency
{
28
private
$name
;
29
private
$value
;
30
31
function
__construct
(
$name
) {
32
$this->name =
$name
;
33
$this->
value
= constant(
$name
);
34
}
35
39
function
isExpired
() {
40
return
constant( $this->name ) !=
$this->value
;
41
}
42
}
value
if( $inline) $status value
Definition:
SyntaxHighlight.php:346
ConstantDependency
Definition:
ConstantDependency.php:27
ConstantDependency\isExpired
isExpired()
Definition:
ConstantDependency.php:39
ConstantDependency\$value
$value
Definition:
ConstantDependency.php:29
CacheDependency
Definition:
CacheDependency.php:27
ConstantDependency\__construct
__construct( $name)
Definition:
ConstantDependency.php:31
ConstantDependency\$name
$name
Definition:
ConstantDependency.php:28
includes
cache
dependency
ConstantDependency.php
Generated on Thu Dec 19 2019 14:54:09 for MediaWiki by
1.8.16