| 1 | <?php |
||
| 14 | class Extended extends Ini |
||
| 15 | { |
||
| 16 | private $config; |
||
|
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * @uses FMUP\Config |
||
| 20 | * @uses Extended\ZendConfig\Ini |
||
| 21 | * @return Extended\ZendConfig\Ini |
||
| 22 | */ |
||
| 23 | 3 | public function getConfig() |
|
| 24 | { |
||
| 25 | 3 | if (!$this->config) { |
|
| 26 | 3 | $this->config = new Extended\ZendConfig\Ini($this->getFilePath(), $this->getSection(), true); |
|
| 27 | } |
||
| 28 | 2 | return $this->config; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Extended\ZendConfig\Ini $config |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | 1 | public function setConfig(Extended\ZendConfig\Ini $config) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $key |
||
| 43 | * @return mixed|null |
||
| 44 | */ |
||
| 45 | 1 | public function get($key = null) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $paramName |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | 1 | public function has($paramName) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $paramName |
||
| 64 | * @param mixed|null $value |
||
| 65 | * @return $this |
||
| 66 | */ |
||
| 67 | 1 | public function set($paramName, $value = null) |
|
| 72 | } |
||
| 73 |