public function getContents() { $className = $this->getFullClassName($this->_modelName, 'Model'); $codeGenFile = new \Zend\Code\Generator\FileGenerator(); $codeGenFile->setFilename($this->getPath()); $codeGenFile->setClass(new \Zend\Code\Generator\ClassGenerator($className)); return $codeGenFile->generate(); }
public function getContents() { $className = $this->getFullClassName($this->_formName, 'Form'); $codeGenFile = new \Zend\Code\Generator\FileGenerator(); $codeGenFile->setFilename($this->getPath()); $codeGenFile->setClass(new \Zend\Code\Generator\ClassGenerator($className, null, null, '\\Zend\\Form\\Form', array(), array(), new MethodGenerator('init', array(), MethodGenerator::FLAG_PUBLIC, '/* Form Elements & Other Definitions Here ... */'))); return $codeGenFile->generate(); }