示例#1
0
<?php

include_once "//var/www/gip/app/settings/gipConfiguration.inc.php";
include_once INC_SUPERHEADER;
include_once CLASS_FILESYSTEM_UTILS;
include_once CLASS_TABLE;
include_once CLASS_PLUGIN_LOADER;
include_once CLASS_COMMON_OBJECT_COPIER;
include_once CLASS_PHP_GIP_UTILS_COMMON_FILE_COPIER;
$thisPlugInLoader = new plugInLoader();
$thisCommonFileCopier = new gipCommonFileCopier();
$arguments = array();
$thisGeneratePath = requestUtils::getRequestObject('generatePath');
$thisConfigFile = requestUtils::getRequestObject('configFile');
$thisGenEnter = requestUtils::getRequestObject('enter');
$thisGenEdit = requestUtils::getRequestObject('edit');
$thisGenDelete = requestUtils::getRequestObject('delete');
$thisGenList = requestUtils::getRequestObject('lister');
$thisGenSearch = requestUtils::getRequestObject('search');
$thisGenView = requestUtils::getRequestObject('viewRecord');
$thisCopyCommon = requestUtils::getRequestObject('copyCommon');
$thisGenIndex = "y";
$thisLanguage = requestUtils::getRequestObject('language');
$thisTables = requestUtils::getRequestObject('tableName');
$headerText = requestUtils::getRequestObject('headerText');
$footerText = requestUtils::getRequestObject('footerText');
$headerText = "include_once(\"../common/dbConnection.php\");\ninclude_once(\"../common/header.php\");";
$footerText = "include_once(\"../common/footer.php\");";
$thisDb = requestUtils::getRequestObject('db');
$thisTable = requestUtils::getRequestObject('table');
$thisFileUtils = new fileSystemUtils();
$thisGenManager = requestUtils::getRequestObject('genManager');
$thisInfoObject = requestUtils::getRequestObject('infoObject');
$thisManager = requestUtils::getRequestObject('manager');
$thisDao = requestUtils::getRequestObject('dao');
$thisConstants = requestUtils::getRequestObject('constants');
$thisCopyCommon = requestUtils::getRequestObject('copyCommon');
$thisFrontEnd = requestUtils::getRequestObject('frontEnd');
$thisLanguage = requestUtils::getRequestObject('language');
$thisTables = requestUtils::getRequestObject('tableName');
$thisDb = requestUtils::getRequestObject('db');
$thisTable = requestUtils::getRequestObject('table');
$headerText = requestUtils::getRequestObject('headerText');
$footerText = requestUtils::getRequestObject('footerText');
$tableSideBar = "";
$thisFileUtils = new fileSystemUtils();
$thisCommonFileCopier = new gipCommonFileCopier();
if ($thisConfigFile == ".conf.php") {
    $thisConfigFile = DEFAULT_CONFIGURATION_FILE_NAME . ".conf.php";
}
$arguments['db'] = $thisDb;
$mainIndexes = array();
echo "All Code will be generated in path <font color=red><b>" . $thisGeneratePath . "</b></font><br><br>";
$thisFileUtils->makeDirectoryRecursive($thisGeneratePath);
if (!$thisFileUtils->doesDirectoryExists($thisGeneratePath)) {
    ?>
The path that you have entered to be the root for your code Generation does not exist on your system. Code Genie cannot proceed. Please make sure that the directory <b><?php 
    echo $thisGeneratePath;
    ?>
</b> exists on the file System. <br><br>
<?php 
    exit;