@@ 815-823 (lines=9) @@ | ||
812 | * @param string $v Config value |
|
813 | * @see $aCfg |
|
814 | */ |
|
815 | public function SetCfg($c, $v = '') { |
|
816 | if (is_array($c)) { |
|
817 | if (!empty($c)) |
|
818 | foreach ($c as $idx => $val) |
|
819 | $this->SetCfg($idx, $val); |
|
820 | } |
|
821 | else |
|
822 | $this->aCfg[$c] = $v; |
|
823 | } // end of func SetCfg |
|
824 | ||
825 | ||
826 | /** |
@@ 199-212 (lines=14) @@ | ||
196 | * @param mixed $v |
|
197 | * @return this |
|
198 | */ |
|
199 | public function SetCfg ($k, $v = null) { |
|
200 | if (is_array($k)) { |
|
201 | // Use array $k only, ignore $v |
|
202 | if (!empty($k)) { |
|
203 | foreach ($k as $key => $val) |
|
204 | $this->aCfg[$key] = $val; |
|
205 | } |
|
206 | } |
|
207 | else { |
|
208 | // Use array $k => $v |
|
209 | $this->aCfg[$k] = $v; |
|
210 | } |
|
211 | return $this; |
|
212 | } // end of func SetCfg |
|
213 | ||
214 | ||
215 | /** |