Where CODEGEN_SETTINGS is the absolute filepath of the codegen_settings.xml file, containing the code generator settings. For more information, please go to http://qcu.be '; exit; } if ($_SERVER['argc'] != 2) { PrintInstructions(); } ///////////////////// // Run Code Gen QCodeGen::Run($_SERVER['argv'][1]); ///////////////////// if ($strErrors == QCodeGen::$RootErrors) { printf("The following ROOT ERRORS were reported:\r\n%s\r\n\r\n", $strErrors); } else { printf("CodeGen settings (as evaluted from %s):\r\n%s\r\n\r\n", $_SERVER['argv'][1], QCodeGen::GetSettingsXml()); } foreach (QCodeGen::$CodeGenArray as $objCodeGen) { printf("%s\r\n---------------------------------------------------------------------\r\n", $objCodeGen->GetTitle()); printf("%s\r\n", $objCodeGen->GetReportLabel()); printf("%s\r\n", $objCodeGen->GenerateAll()); if ($strErrors = $objCodeGen->Errors) { printf("The following errors were reported:\r\n%s\r\n", $strErrors); } print "\r\n"; } foreach (QCodeGen::GenerateAggregate() as $strMessage) { printf("%s\r\n\r\n", $strMessage); }
?> <p><b>The following root errors were reported:</b></p> <pre class="error"><code><?php DisplayMonospacedText($strErrors); ?> </code></pre> <p></p> <?php } else { ?> <p><b>CodeGen Settings (as evaluated from <?php _p(QCodeGen::$SettingsFilePath); ?> ):</b></p> <pre><code><?php DisplayMonospacedText(QCodeGen::GetSettingsXml()); ?> </code></pre> <p></p> <?php } ?> <?php foreach (QCodeGen::$CodeGenArray as $objCodeGen) { ?> <p><b><?php _p($objCodeGen->GetTitle()); ?> </b></p> <span class="code_title"><?php
print "Error: __QCUBED__ setting is not defined. Make sure {$qcubedBaseDir} is the correct QCubed base directory\n"; PrintInstructions(); } } $settingsFile = __CONFIGURATION__ . '/codegen_settings.xml'; if (!is_file($settingsFile)) { print "Error: Could not locate codegen settings file: {$settingsFile} does not exist\n"; PrintInstructions(); } require __QCUBED__ . '/codegen/QCodeGen.class.php'; ///////////////////// // Run Code Gen QCodeGen::Run($settingsFile); ///////////////////// if ($strErrors = QCodeGen::$RootErrors) { printf("The following ROOT ERRORS were reported:\r\n%s\r\n\r\n", $strErrors); } else { printf("CodeGen settings (as evaluted from %s):\r\n%s\r\n\r\n", $settingsFile, QCodeGen::GetSettingsXml()); } foreach (QCodeGen::$CodeGenArray as $objCodeGen) { printf("%s\r\n---------------------------------------------------------------------\r\n", $objCodeGen->GetTitle()); printf("%s\r\n", $objCodeGen->GetReportLabel()); printf("%s\r\n", $objCodeGen->GenerateAll()); if ($strErrors = $objCodeGen->Errors) { printf("The following errors were reported:\r\n%s\r\n", $strErrors); } print "\r\n"; } foreach (QCodeGen::GenerateAggregate() as $strMessage) { printf("%s\r\n\r\n", $strMessage); }
<td nowrap="nowrap" class="headingRight"> <b>PHP Version:</b> <?php _p(PHP_VERSION); ?>; <b>Zend Engine Version:</b> <?php _p(zend_version()); ?>; <b>Qcodo Version:</b> <?php _p(QCODO_VERSION); ?><br /> <?php if (array_key_exists('OS', $_SERVER)) printf('<b>Operating System:</b> %s; ', $_SERVER['OS']); ?><b>Application:</b> <?php _p($_SERVER['SERVER_SOFTWARE']); ?>; <b>Server Name:</b> <?php _p($_SERVER['SERVER_NAME']); ?><br /> <b>Code Generated:</b> <?php _p(date('l, F j Y, g:i:s A')); ?> </td> </tr> </table> <div class="page"> <?php if ($strErrors = QCodeGen::$RootErrors) { ?> <p><b>The following root errors were reported:</b></p> <div class="code"><?php DisplayMonospacedText($strErrors); ?></div> <p></p> <?php } else { ?> <p><b>CodeGen Settings (as evaluated from <?php _p(QCodeGen::$SettingsFilePath); ?>):</b></p> <div class="code"><?php DisplayMonospacedText(QCodeGen::GetSettingsXml()); ?></div> <p></p> <?php } ?> <?php foreach (QCodeGen::$CodeGenArray as $objCodeGen) { ?> <p><b><?php _p($objCodeGen->GetTitle()); ?></b></p> <div class="code"><span class="code_title"><?php _p($objCodeGen->GetReportLabel()); ?></span><br/><br/> <?php DisplayMonospacedText($objCodeGen->GenerateAll()); ?> <?php if ($strErrors = $objCodeGen->Errors) { ?> <p class="code_title">The following errors were reported:</p> <?php DisplayMonospacedText($objCodeGen->Errors); ?> <?php } ?> </div><p></p> <?php } ?> <?php foreach (QCodeGen::GenerateAggregate() as $strMessage) { ?>