summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatGenerateAR.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-11-26 11:34:52 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-11-26 11:34:52 +0100
commit5632770c86d30361fe0c3eefc7d327786b478702 (patch)
tree0b5f2c00cf4c09719a9b8c076208b592218116bd /framework/Wsat/pages/TWsatGenerateAR.php
parenta6dbcf68802645bbe16b4b927367c42fde127944 (diff)
Removed Wsat, will live in its own branch
Diffstat (limited to 'framework/Wsat/pages/TWsatGenerateAR.php')
-rw-r--r--framework/Wsat/pages/TWsatGenerateAR.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/framework/Wsat/pages/TWsatGenerateAR.php b/framework/Wsat/pages/TWsatGenerateAR.php
deleted file mode 100644
index 3d4291e2..00000000
--- a/framework/Wsat/pages/TWsatGenerateAR.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/**
- * Description of Inicio
- *
- * @author daniels
- */
-Prado::using("System.Wsat.TWsatARGenerator");
-
-class TWsatGenerateAR extends TPage {
-
- public function generate($sender) {
- if ($this->IsValid) {
- $table_name = $this->table_name->Text;
- $class_prefix = $this->class_prefix->Text;
- $output_folder_ns = $this->output_folder->Text;
-
- try {
- $ar_generator = new TWsatARGenerator();
- $ar_generator->setOpFile($output_folder_ns);
- $ar_generator->setClasPrefix($class_prefix);
-
- if ($this->build_rel->Checked) {
- $ar_generator->buildRelations();
- }
- if ($table_name != "*") {
- $ar_generator->generate($table_name);
- } else {
- $ar_generator->generateAll();
- }
- $this->success_panel->CssClass = "success_panel";
- $this->generation_msg->Text = "The code has been generated successfully.";
- } catch (Exception $ex) {
- $this->success_panel->CssClass = "exception_panel";
- $this->generation_msg->Text = $ex->getMessage();
- }
- $this->success_panel->Visible = true;
- }
- }
-
- public function preview($sender) {
-// $ar_generator = new TWsatARGenerator();
-// $ar_generator->renderAllTablesInformation();
- throw new THttpException(500, "Not implemented yet.");
- }
-
-}
-
-?> \ No newline at end of file