File indexing completed on 2024-06-23 05:55:51

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Tool
0017  * @subpackage Framework
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id: TestApplicationControllerDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
0021  */
0022 
0023 /**
0024  * @see Zend_Tool_Project_Context_Filesystem_Directory
0025  */
0026 // require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
0027 
0028 /**
0029  * This class is the front most class for utilizing Zend_Tool_Project
0030  *
0031  * A profile is a hierarchical set of resources that keep track of
0032  * items within a specific project.
0033  *
0034  * @category   Zend
0035  * @package    Zend_Tool
0036  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0037  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0038  */
0039 class Zend_Tool_Project_Context_Zf_TestApplicationModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
0040 {
0041 
0042 
0043     /**
0044      * @var string
0045      */
0046     protected $_forModuleName = null;
0047 
0048     /**
0049      * @var string
0050      */
0051     protected $_filesystemName = 'moduleDirectory';
0052 
0053     /**
0054      * init()
0055      *
0056      * @return Zend_Tool_Project_Context_Zf_ControllerFile
0057      */
0058     public function init()
0059     {
0060         $this->_filesystemName = $this->_forModuleName = $this->_resource->getAttribute('forModuleName');
0061         parent::init();
0062         return $this;
0063     }
0064 
0065     /**
0066      * getName()
0067      *
0068      * @return string
0069      */
0070     public function getName()
0071     {
0072         return 'TestApplicationModuleDirectory';
0073     }
0074 
0075     /**
0076      * getPersistentAttributes
0077      *
0078      * @return array
0079      */
0080     public function getPersistentAttributes()
0081     {
0082         return array(
0083             'forModuleName' => $this->getForModuleName()
0084             );
0085     }
0086 
0087     /**
0088      * getModuleName()
0089      *
0090      * @return string
0091      */
0092     public function getForModuleName()
0093     {
0094         return $this->_forModuleName;
0095     }
0096     
0097 
0098 }