* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @since 3.3 * @package Wsat.pages */ Prado::using("System.Wsat.TWsatScaffoldingGenerator"); class TWsatScaffolding extends TPage { public function onInit($param) { parent::onInit($param); $this->startVisual(); } private function startVisual() { $scf_generator = new TWsatScaffoldingGenerator(); foreach ($scf_generator->getAllTableNames() as $tableName) { $dynChb = new TCheckBox(); $dynChb->ID = "cb_$tableName"; $dynChb->Text = ucfirst($tableName); $dynChb->Checked = true; $this->registerObject("cb_$tableName", $dynChb); $this->tableNames->getControls()->add($dynChb); $this->tableNames->getControls()->add("
"); } } public function generate($sender) { if ($this->IsValid) { $scf_generator = new TWsatScaffoldingGenerator(); // echo $this->cb_student->Text; // $scf_generator->renderAllTablesInformation(); } } }