diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Tool/Project/Context/Zf/ModelFile.php --- a/web/lib/Zend/Tool/Project/Context/Zf/ModelFile.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Tool/Project/Context/Zf/ModelFile.php Thu Mar 21 19:50:53 2013 +0100 @@ -15,12 +15,17 @@ * @category Zend * @package Zend_Tool * @subpackage Framework - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: ModelFile.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: ModelFile.php 24593 2012-01-05 20:35:02Z matthew $ */ /** + * Zend_Tool_Project_Context_Zf_AbstractClassFile + */ +require_once 'Zend/Tool/Project/Context/Zf/AbstractClassFile.php'; + +/** * This class is the front most class for utilizing Zend_Tool_Project * * A profile is a hierarchical set of resources that keep track of @@ -28,7 +33,7 @@ * * @category Zend * @package Zend_Tool - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Tool_Project_Context_Zf_ModelFile extends Zend_Tool_Project_Context_Zf_AbstractClassFile @@ -38,12 +43,12 @@ * @var string */ protected $_modelName = 'Base'; - + /** * @var string */ protected $_filesystemName = 'modelName'; - + /** * init() * @@ -66,7 +71,7 @@ 'modelName' => $this->getModelName() ); } - + /** * getName() * @@ -81,12 +86,12 @@ { return $this->_modelName; } - + public function getContents() { - + $className = $this->getFullClassName($this->_modelName, 'Model'); - + $codeGenFile = new Zend_CodeGenerator_Php_File(array( 'fileName' => $this->getPath(), 'classes' => array( @@ -97,6 +102,6 @@ )); return $codeGenFile->generate(); } - - + + } \ No newline at end of file