}
+ var $defaults = array();
+
function get()
{
$this->modules = $this->modulesList();
- $this->config();
+ $this->defaults();
+
+ print_r($this->defaults);exit;
$this->etype();
$this->etype->insert();
}
- function config()
+ function defaults()
{
foreach ($this->modules as $m){
- $file = $this->rootDir. "/Pman/$m/NotifyType.json";
+ $file = $this->rootDir. "/Pman/$m/Core.NotifyType.json";
+
+ if(!file_exists($file)){
+ continue;
+ }
+
+ $this->defaults = array_merge($this->defaults, json_decode(file_get_contents($file), true)) ;
}
+
}
function log($str)