Translate extension for MediaWiki
Loading...
Searching...
No Matches
PHPVariableLoader.php
Go to the documentation of this file.
1
<?php
13
class
PHPVariableLoader
{
20
public
static
function
loadVariableFromPHPFile
( $_filename, $_variable ) {
21
if
( !file_exists( $_filename ) ) {
22
return
null
;
23
}
else
{
24
require $_filename;
25
26
return
$$_variable ??
null
;
27
}
28
}
29
}
PHPVariableLoader
Stuff for handling configuration files in PHP format.
Definition
PHPVariableLoader.php:13
PHPVariableLoader\loadVariableFromPHPFile
static loadVariableFromPHPFile( $_filename, $_variable)
Returns a global variable from PHP file by executing the file.
Definition
PHPVariableLoader.php:20
utils
PHPVariableLoader.php
Generated by
1.10.0