|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Tool |
|
17 * @subpackage Framework |
|
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: TestApplicationControllerDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * @see Zend_Tool_Project_Context_Filesystem_Directory |
|
25 */ |
|
26 require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php'; |
|
27 |
|
28 /** |
|
29 * This class is the front most class for utilizing Zend_Tool_Project |
|
30 * |
|
31 * A profile is a hierarchical set of resources that keep track of |
|
32 * items within a specific project. |
|
33 * |
|
34 * @category Zend |
|
35 * @package Zend_Tool |
|
36 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
|
37 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
38 */ |
|
39 class Zend_Tool_Project_Context_Zf_TestApplicationModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory |
|
40 { |
|
41 |
|
42 |
|
43 /** |
|
44 * @var string |
|
45 */ |
|
46 protected $_forModuleName = null; |
|
47 |
|
48 /** |
|
49 * @var string |
|
50 */ |
|
51 protected $_filesystemName = 'moduleDirectory'; |
|
52 |
|
53 /** |
|
54 * init() |
|
55 * |
|
56 * @return Zend_Tool_Project_Context_Zf_ControllerFile |
|
57 */ |
|
58 public function init() |
|
59 { |
|
60 $this->_filesystemName = $this->_forModuleName = $this->_resource->getAttribute('forModuleName'); |
|
61 parent::init(); |
|
62 return $this; |
|
63 } |
|
64 |
|
65 /** |
|
66 * getName() |
|
67 * |
|
68 * @return string |
|
69 */ |
|
70 public function getName() |
|
71 { |
|
72 return 'TestApplicationModuleDirectory'; |
|
73 } |
|
74 |
|
75 /** |
|
76 * getPersistentAttributes |
|
77 * |
|
78 * @return array |
|
79 */ |
|
80 public function getPersistentAttributes() |
|
81 { |
|
82 return array( |
|
83 'forModuleName' => $this->getForModuleName() |
|
84 ); |
|
85 } |
|
86 |
|
87 /** |
|
88 * getModuleName() |
|
89 * |
|
90 * @return string |
|
91 */ |
|
92 public function getForModuleName() |
|
93 { |
|
94 return $this->_forModuleName; |
|
95 } |
|
96 |
|
97 |
|
98 } |