コード例 #1
0
ファイル: processWhatToGenerate.php プロジェクト: juddy/GIP
$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();
$arguments['db'] = requestUtils::getRequestObject('db');
echo "Generated Code Root : <b>{$thisGeneratePath} </b> <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;
} else {
    if (count($thisTables) == 0) {
        ?>
You did not select any tables for Auto Code Generation. You need to select at least one table. Please go back and choose again.
<?php 
    } else {
        $projectRoot = $thisGeneratePath . FILE_SEPARATOR . $thisDb;
        $rootUrl = URL_ADDRESS . "/generatedCode/simple/" . $thisDb;