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