| 1 | <?php |
||
| 15 | class Config |
||
| 16 | { |
||
| 17 | private $basePath; |
||
| 18 | private $cfgFile; |
||
| 19 | private $config; |
||
| 20 | |||
| 21 | public function __construct($basePath, $cfgFile = 'conf/sspks.yaml') |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Getter magic method. |
||
| 42 | * |
||
| 43 | * @param string $name Name of requested value. |
||
| 44 | * @return mixed Requested value. |
||
| 45 | */ |
||
| 46 | public function __get($name) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Isset feature magic method. |
||
| 53 | * |
||
| 54 | * @param string $name Name of requested value. |
||
| 55 | * @return bool TRUE if value exists, FALSE otherwise. |
||
| 56 | */ |
||
| 57 | public function __isset($name) |
||
| 61 | } |
||
| 62 |