diff options
Diffstat (limited to 'framework/Wsat/pages/TWsatScaffolding.php')
-rw-r--r-- | framework/Wsat/pages/TWsatScaffolding.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php index aa7599ca..b4801745 100644 --- a/framework/Wsat/pages/TWsatScaffolding.php +++ b/framework/Wsat/pages/TWsatScaffolding.php @@ -2,9 +2,9 @@ /** * @author Daniel Sampedro Bello <darthdaniel85@gmail.com> - * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2014 PradoSoft - * @license http://www.pradosoft.com/license/ + * @link https://github.com/pradosoft/prado + * @copyright Copyright © 2005-2015 The PRADO Group + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @version $Id$ * @since 3.3 * @package Wsat.pages @@ -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) |