| @@ 60-69 (lines=10) @@ | ||
| 57 | * |
|
| 58 | * @return null |
|
| 59 | */ |
|
| 60 | public function get($key = null, $default = null, $set = false) |
|
| 61 | { |
|
| 62 | if (isset($this->_settings[$key])) { |
|
| 63 | return $this->_settings[$key]; |
|
| 64 | } |
|
| 65 | if ($set) { |
|
| 66 | $this->set($key, $default); |
|
| 67 | } |
|
| 68 | return $default; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * @return mixed |
|
| @@ 259-268 (lines=10) @@ | ||
| 256 | * @param bool $set |
|
| 257 | * @return null |
|
| 258 | */ |
|
| 259 | public function get($key = null, $default = null, $set = false) |
|
| 260 | { |
|
| 261 | if (isset($this->_freeValues[$key])) { |
|
| 262 | return $this->_freeValues[$key]; |
|
| 263 | } |
|
| 264 | if ($set) { |
|
| 265 | $this->set($key, $default); |
|
| 266 | } |
|
| 267 | return $default; |
|
| 268 | } |
|
| 269 | ||
| 270 | /** |
|
| 271 | * @param $key |
|