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') |
|
41 | |||
42 | /** |
||
43 | * Getter magic method. |
||
44 | * |
||
45 | * @param string $name Name of requested value. |
||
46 | * @return mixed Requested value. |
||
47 | */ |
||
48 | 1 | public function __get($name) |
|
52 | |||
53 | /** |
||
54 | * Isset feature magic method. |
||
55 | * |
||
56 | * @param string $name Name of requested value. |
||
57 | * @return bool TRUE if value exists, FALSE otherwise. |
||
58 | */ |
||
59 | public function __isset($name) |
||
63 | |||
64 | 1 | public function rewind() |
|
68 | |||
69 | 1 | public function current() |
|
73 | |||
74 | 1 | public function key() |
|
78 | |||
79 | 1 | public function next() |
|
83 | |||
84 | 1 | public function valid() |
|
88 | } |
||
89 |