PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
+ $this->modules = $this->modulesList();
+
+ $this->defaults();
+
$this->etype();
$this->etype->insert();
}
- function modules()
+ function defaults()
{
+ foreach ($this->modules as $m){
+ $file = $this->rootDir. "/Pman/$m/Core.NotifyType.json";
+
+ if(!file_exists($file)){
+ continue;
+ }
+
+ $this->defaults[$m] = json_decode(file_get_contents($file), true);
+
+ }
}
+
+ function log($str)
+ {
+ echo "$str \n";
+ }
}
\ No newline at end of file