1 | <?php |
||
17 | class Config implements \Iterator |
||
18 | { |
||
19 | private $iterPos; |
||
20 | private $basePath; |
||
21 | private $cfgFile; |
||
22 | private $config; |
||
23 | |||
24 | 3 | public function __construct($basePath, $cfgFile = 'conf/sspks.yaml') |
|
44 | |||
45 | /** |
||
46 | * Getter magic method. |
||
47 | * |
||
48 | * @param string $name Name of requested value. |
||
49 | * @return mixed Requested value. |
||
50 | */ |
||
51 | 1 | public function __get($name) |
|
55 | |||
56 | /** |
||
57 | * Setter magic method. |
||
58 | * |
||
59 | * @param string $name Name of variable to set. |
||
60 | * @param mixed $value Value to set. |
||
61 | */ |
||
62 | public function __set($name, $value) |
||
66 | |||
67 | /** |
||
68 | * Isset feature magic method. |
||
69 | * |
||
70 | * @param string $name Name of requested value. |
||
71 | * @return bool TRUE if value exists, FALSE otherwise. |
||
72 | */ |
||
73 | public function __isset($name) |
||
77 | |||
78 | /** |
||
79 | * Unset feature magic method. |
||
80 | * |
||
81 | * @param string $name Name of value to unset. |
||
82 | */ |
||
83 | public function __unset($name) |
||
87 | |||
88 | public function rewind() |
||
92 | |||
93 | public function current() |
||
97 | |||
98 | public function key() |
||
102 | |||
103 | public function next() |
||
107 | |||
108 | public function valid() |
||
112 | } |
||
113 |