summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatGenerateAR.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-25 12:49:07 -0500
committerDaniel <darthdaniel85@gmail.com>2013-11-25 12:49:07 -0500
commit227ef973f923ec201a1ece197f6242b3248c66ae (patch)
tree9eae95c47d7ac19a15d1f61f19d417e354b943c0 /framework/Wsat/pages/TWsatGenerateAR.php
parentefde949d00b808f55710abbd3d82ceb490545116 (diff)
WSAT beta release with doc.
Diffstat (limited to 'framework/Wsat/pages/TWsatGenerateAR.php')
-rw-r--r--framework/Wsat/pages/TWsatGenerateAR.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/framework/Wsat/pages/TWsatGenerateAR.php b/framework/Wsat/pages/TWsatGenerateAR.php
index 3d4291e2..d5934686 100644
--- a/framework/Wsat/pages/TWsatGenerateAR.php
+++ b/framework/Wsat/pages/TWsatGenerateAR.php
@@ -1,9 +1,13 @@
<?php
/**
- * Description of Inicio
- *
- * @author daniels
+ * @author Daniel Sampedro Bello <darthdaniel85@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2013 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id$
+ * @since 3.3
+ * @package Wsat.pages
*/
Prado::using("System.Wsat.TWsatARGenerator");
@@ -12,13 +16,15 @@ 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;
+ $class_prefix = $this->class_prefix->Text;
+ $class_sufix = $this->class_sufix->Text;
try {
$ar_generator = new TWsatARGenerator();
$ar_generator->setOpFile($output_folder_ns);
$ar_generator->setClasPrefix($class_prefix);
+ $ar_generator->setClassSufix($class_sufix);
if ($this->build_rel->Checked) {
$ar_generator->buildRelations();
@@ -28,20 +34,20 @@ class TWsatGenerateAR extends TPage {
} else {
$ar_generator->generateAll();
}
- $this->success_panel->CssClass = "success_panel";
+ $this->feedback_panel->CssClass = "green_panel";
$this->generation_msg->Text = "The code has been generated successfully.";
} catch (Exception $ex) {
- $this->success_panel->CssClass = "exception_panel";
+ $this->feedback_panel->CssClass = "red_panel";
$this->generation_msg->Text = $ex->getMessage();
}
- $this->success_panel->Visible = true;
+ $this->feedback_panel->Visible = true;
}
}
public function preview($sender) {
// $ar_generator = new TWsatARGenerator();
// $ar_generator->renderAllTablesInformation();
- throw new THttpException(500, "Not implemented yet.");
+ throw new THttpException(500, "Not implemented yet.");
}
}