OXID eShop CE
4.9.5
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxconfigfile.php
Go to the documentation of this file.
1
<?php
2
6
class
OxConfigFile
7
{
8
17
private
function
_loadVars
($sFileName)
18
{
19
include $sFileName;
20
}
21
27
public
function
__construct
($sFileName)
28
{
29
$this->
_loadVars
($sFileName);
30
}
31
39
public
function
getVar
($sVarName)
40
{
41
if
(isset ($this->$sVarName)) {
42
return
$this->$sVarName;
43
}
44
45
return
null;
46
}
47
54
public
function
setVar
($sVarName, $sValue)
55
{
56
$this->$sVarName = $sValue;
57
}
58
66
public
function
isVarSet
($sVarName)
67
{
68
return
isset($this->$sVarName);
69
}
70
76
public
function
getVars
()
77
{
78
$aAllVars = get_object_vars($this);
79
80
return
$aAllVars;
81
}
82
88
public
function
setFile
($sFileName)
89
{
90
if
(is_readable($sFileName)) {
91
$this->
_loadVars
($sFileName);
92
}
93
}
94
}
core
oxconfigfile.php
Generated by
1.8.1.2