| @@ 47-56 (lines=10) @@ | ||
| 44 | return $this; |
|
| 45 | } |
|
| 46 | ||
| 47 | public function get($key = null, $default = null, $set = false) |
|
| 48 | { |
|
| 49 | if (isset($this->_settings[$key])) { |
|
| 50 | return $this->_settings[$key]; |
|
| 51 | } |
|
| 52 | if ($set) { |
|
| 53 | $this->set($key, $default); |
|
| 54 | } |
|
| 55 | return $default; |
|
| 56 | } |
|
| 57 | ||
| 58 | public function getSettings() |
|
| 59 | { |
|
| @@ 225-234 (lines=10) @@ | ||
| 222 | * @param bool $set |
|
| 223 | * @return null |
|
| 224 | */ |
|
| 225 | public function get($key = null, $default = null, $set = false) |
|
| 226 | { |
|
| 227 | if (isset($this->_freeValues[$key])) { |
|
| 228 | return $this->_freeValues[$key]; |
|
| 229 | } |
|
| 230 | if ($set) { |
|
| 231 | $this->set($key, $default); |
|
| 232 | } |
|
| 233 | return $default; |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * @param $key |
|