diff options
author | Jean-Luc Gyger <jean-luc.gyger@vysual.ch> | 2016-02-11 10:01:12 +0100 |
---|---|---|
committer | Jean-Luc Gyger <jean-luc.gyger@vysual.ch> | 2016-02-11 10:01:12 +0100 |
commit | d70861a8f9368773f2f0291454e9420174e6c14a (patch) | |
tree | e44a32e401211422fb05da355c9eef4d5934d9e9 /framework/Wsat/pages/TWsatScaffolding.php | |
parent | d32f65815eb6feb4bcb8a0c85572f722d7826342 (diff) | |
parent | 275f16b90a92c62935cb691d11e0bd124acf64e4 (diff) |
Merge branch 'master' of https://github.com/majuca/prado
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) |