Example #1
0
 function component_generate($args, $output = "text")
 {
     // Only return this data when run from the commandline
     if ($output == "commandline") {
         $ret = "[not found]";
         if (!empty($args["model"])) {
             $data = DataManager::singleton();
             $model = new ORMModel($args["model"]);
             $ret = $model->Generate();
         }
     } else {
         $ret = "";
     }
     return $ret;
 }