예제 #1
0
 if ($pos !== false) {
     $_GET['targetModule'] = 'humanResource';
 }
 $findme = 'translation';
 $pos = strpos($_GET['targetTable'], $findme);
 if ($pos !== false) {
     $_GET['targetModule'] = 'translation';
 }
 if (isset($_GET['targetTable']) && strlen($_GET['targetTable']) > 0) {
     $generator->setTargetTable($_GET['targetTable']);
 }
 if (isset($_GET['targetGridType']) && strlen($_GET['targetGridType']) > 0) {
     $generator->setTargetGridType($_GET['targetDatabase']);
 }
 if (isset($_GET['targetOutput']) && strlen($_GET['targetOutput']) > 0) {
     $generator->setTargetOutput($_GET['targetOutput']);
 }
 if (isset($_GET['targetPackage']) && strlen($_GET['targetPackage']) > 0) {
     $generator->setTargetPackage($_GET['targetPackage']);
 }
 if (isset($_GET['targetModule']) && strlen($_GET['targetModule']) > 0) {
     $generator->setTargetModule($_GET['targetModule']);
 }
 if (isset($_GET['targetFormStyle']) && strlen($_GET['targetFormStyle']) > 0) {
     $generator->setTargetFormStyle($_GET['targetFormStyle']);
 }
 $extension = null;
 $template == null;
 switch ($_GET['targetOutput']) {
     case 'model':
         $extension = 'Model.php';