summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatScaffolding.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-11-07 15:06:50 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-11-07 15:06:50 +0100
commit11666237dbdc0eb9e01d5d739994bdd88a551168 (patch)
treeab061320a2afeaaa428d676d0d46230c8e9fcf78 /framework/Wsat/pages/TWsatScaffolding.php
parent0749f11251a1bc72a2d24049036e3a24db74cb50 (diff)
Prepare for release: update (c) year to 2015, version to 3.3
Diffstat (limited to 'framework/Wsat/pages/TWsatScaffolding.php')
-rw-r--r--framework/Wsat/pages/TWsatScaffolding.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php
index aa7599ca..dd7e40bf 100644
--- a/framework/Wsat/pages/TWsatScaffolding.php
+++ b/framework/Wsat/pages/TWsatScaffolding.php
@@ -3,7 +3,7 @@
/**
* @author Daniel Sampedro Bello <darthdaniel85@gmail.com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @copyright Copyright &copy; 2005-2015 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
@@ -47,7 +47,16 @@ class TWsatScaffolding extends TPage
{
$scf_generator = new TWsatScaffoldingGenerator();
$scf_generator->setOpFile($this->output_folder->Text);
- $scf_generator->generateCRUD("estudiante");
+ foreach ($scf_generator->getAllTableNames() as $tableName)
+ {
+ $id = "cb_$tableName";
+ $obj = $this->tableNames->findControl($id);
+ if($obj!==null && $obj->Checked)
+ {
+ $scf_generator->generateCRUD($tableName);
+ }
+ }
+
$this->feedback_panel->CssClass = "green_panel";
$this->generation_msg->Text = "The code has been generated successfully.";
} catch (Exception $ex)