Generator.php
[Pman.Core] / Generator.php
index f593f0c..de2ce22 100644 (file)
@@ -45,13 +45,12 @@ $this->def['forms'][$table][$t->name] = $form;
 class Pman_Core_Generator extends DB_DataObject_Generator
 {
     
-    static $cli_desc = "Generate the dataobjects";
-    
+     
     function getAuth()
     {
-        if (!HTML_FlexyFramework::get()->cli) {
-            die("cli not set");  
-        }
+         
+        die("do not use this directly.. - use Core/RunGenerator");  
+        
     }
    
     // inherrited..
@@ -115,7 +114,8 @@ class Pman_Core_Generator extends DB_DataObject_Generator
         $options['class_location'] = $this->rootDir .'/'.$proj.'/DataObjects';
         $options['require_prefix'] =    $proj . '/DataObjects/';
         $options['class_prefix'] =    $proj . '_DataObjects_';
-       //  print_r($this);exit;
+        HTML_FlexyFramework::debug(print_r($options,true));
+      print_r($this);exit;
        
        
         $standard_database = $options['database'];