--- /dev/null
+<?php\r
+class Phergie_Extended_Config extends Phergie_Config {\r
+ /**\r
+ * Incorporates an associative array of settings into the current\r
+ * configuration settings.\r
+ *\r
+ * @param array $array Array of settings\r
+ *\r
+ * @return Phergie_Config Provides a fluent interface\r
+ * @throws Phergie_Config_Exception\r
+ */\r
+ public function readArray($array) {\r
+ $settings = $array;\r
+ if (!is_array($settings)) {\r
+ throw new Phergie_Config_Exception(\r
+ 'Parameter is not an array',\r
+ Phergie_Config_Exception::ERR_ARRAY_NOT_RETURNED\r
+ );\r
+ }\r
+\r
+ $this->files[$file] = array_keys($settings);\r
+ $this->settings += $settings;\r
+\r
+ return $this;\r
+ }\r
+}\r