blob: ea7368adfef9525163b2c990a92fdc54cc422dba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
class Phergie_Extended_Config extends Phergie_Config {
/**
* Incorporates an associative array of settings into the current
* configuration settings.
*
* @param array $array Array of settings
*
* @return Phergie_Config Provides a fluent interface
* @throws Phergie_Config_Exception
*/
public function readArray($array) {
$settings = $array;
if (!is_array($settings)) {
throw new Phergie_Config_Exception(
'Parameter is not an array',
Phergie_Config_Exception::ERR_ARRAY_NOT_RETURNED
);
}
$this->files[$file] = array_keys($settings);
$this->settings += $settings;
return $this;
}
}
|