*prechod na novsiu verziu ZF
[sport-group.git] / library / Zend / Tool / Project / Context / Zf / ModuleDirectory.php
blob84728a4c7c7ab1e23e4943d7e8e8bc0c2e1a7280
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
15 * @category Zend
16 * @package Zend_Tool
17 * @subpackage Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: ModuleDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
23 /**
24 * @see Zend_Tool_Project_Context_Filesystem_Directory
26 require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
28 /**
29 * This class is the front most class for utilizing Zend_Tool_Project
31 * A profile is a hierarchical set of resources that keep track of
32 * items within a specific project.
34 * @category Zend
35 * @package Zend_Tool
36 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
37 * @license http://framework.zend.com/license/new-bsd New BSD License
39 class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
42 /**
43 * @var string
45 protected $_moduleName = null;
47 /**
48 * @var string
50 protected $_filesystemName = 'moduleDirectory';
52 /**
53 * init()
55 * @return Zend_Tool_Project_Context_Zf_ControllerFile
57 public function init()
59 $this->_filesystemName = $this->_moduleName = $this->_resource->getAttribute('moduleName');
60 parent::init();
61 return $this;
64 /**
65 * getName()
67 * @return string
69 public function getName()
71 return 'ModuleDirectory';
74 /**
75 * getPersistentAttributes
77 * @return array
79 public function getPersistentAttributes()
81 return array(
82 'moduleName' => $this->getModuleName()
86 /**
87 * getModuleName()
89 * @return string
91 public function getModuleName()
93 return $this->_moduleName;