1 | <?php |
||
15 | class Config implements \Iterator |
||
16 | { |
||
17 | private $iterPos; |
||
18 | private $basePath; |
||
19 | private $cfgFile; |
||
20 | private $config; |
||
21 | |||
22 | 3 | public function __construct($basePath, $cfgFile = 'conf/sspks.yaml') |
|
42 | |||
43 | /** |
||
44 | * Getter magic method. |
||
45 | * |
||
46 | * @param string $name Name of requested value. |
||
47 | * @return mixed Requested value. |
||
48 | 1 | */ |
|
49 | public function __get($name) |
||
53 | |||
54 | /** |
||
55 | * Setter magic method. |
||
56 | * |
||
57 | * @param string $name Name of variable to set. |
||
58 | * @param mixed $value Value to set. |
||
59 | */ |
||
60 | public function __set($name, $value) |
||
64 | 1 | ||
65 | /** |
||
66 | 1 | * Isset feature magic method. |
|
67 | 1 | * |
|
68 | * @param string $name Name of requested value. |
||
69 | 1 | * @return bool TRUE if value exists, FALSE otherwise. |
|
70 | */ |
||
71 | 1 | public function __isset($name) |
|
75 | |||
76 | /** |
||
77 | 1 | * Unset feature magic method. |
|
78 | * |
||
79 | 1 | * @param string $name Name of value to unset. |
|
80 | */ |
||
81 | 1 | public function __unset($name) |
|
85 | |||
86 | 1 | public function rewind() |
|
90 | |||
91 | public function current() |
||
95 | |||
96 | public function key() |
||
100 | |||
101 | public function next() |
||
105 | |||
106 | public function valid() |
||
110 | } |
||
111 |