Pman.js
[Pman.Core] / Import / Core_notify.php
index 5c7a91a..5e0469b 100644 (file)
@@ -22,7 +22,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo
 
     var $defaults = array();
     
-    function get()
+    function get($v, $opts=array())
     {   
         
         $this->transObj = DB_DataObject::Factory('core_enum');
@@ -65,7 +65,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo
             $enum = DB_DataObject::factory('core_enum');
             $enum->setFrom(array(
                 'etype' => $this->etype->name,
-                'name' => $t,
+                'name' => $t->evtype,
                 'active' => 1
             ));
             
@@ -73,7 +73,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo
                 continue;
             }
             
-            $enum->display_name = $t;
+            $enum->display_name = $t->evtype;
             $enum->insert();
         }
         
@@ -108,6 +108,8 @@ class Pman_Core_Import_Core_notify extends Pman_Roo
                 continue;
             }
             
+            $this->log("Processing $file");
+                    
             $this->defaults = array_merge($this->defaults, json_decode(file_get_contents($file), true)) ;
         }