* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @since 3.3 * @package Wsat */ Prado::using("System.Wsat.TWsatBaseGenerator"); class TWsatScaffoldingGenerator extends TWsatBaseGenerator { function __construct() { parent::__construct(); } public function generate() { $unitName = "Example"; $class = $this->generateClass($unitName); $outputClass = $this->_opFile . DIRECTORY_SEPARATOR . $unitName . ".php"; file_put_contents($outputClass, $class); $outputPage = $this->_opFile . DIRECTORY_SEPARATOR . $unitName . ".page"; $page = $this->generatePage($unitName); file_put_contents($outputPage, $page); } // private function generatePage($fileName, $tContentId = "Content") { return << EOD; } private function generateClass($classname) { $date = date('Y-m-d h:i:s'); $env_user = getenv("username"); return << } ?>