Ejemplo n.º 1
0
 public function init()
 {
     if ($this->_resource->hasAttribute('classNamePrefix')) {
         $this->_classNamePrefix = $this->_resource->getAttribute('classNamePrefix');
     }
     parent::init();
 }
Ejemplo n.º 2
0
 /**
  * init()
  *
  * @return \Zend\Tool\Project\Context\Zf\ViewControllerScriptsDirectory
  */
 public function init()
 {
     $this->_forControllerName = $this->_resource->getAttribute('forControllerName');
     $this->_filesystemName = $this->_convertControllerNameToFilesystemName($this->_forControllerName);
     parent::init();
     return $this;
 }
 /**
  * init()
  *
  * @return \Zend\Tool\Project\Context\Zf\TestLibraryNamespaceDirectory
  */
 public function init()
 {
     $this->_namespaceName  = $this->_resource->getAttribute('namespaceName');
     $this->_filesystemName = $this->_namespaceName;
     parent::init();
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * init()
  *
  * @return \Zend\Tool\Project\Context\System\ProjectProvidersDirectory
  */
 public function init()
 {
     parent::init();
     if (file_exists($this->getPath())) {
         foreach (new \DirectoryIterator($this->getPath()) as $item) {
             if ($item->isFile()) {
                 $loadableFiles[] = $item->getPathname();
             }
         }
         if ($loadableFiles) {
             // @todo process and add the files to the system for usage.
         }
     }
     return $this;
 }
Ejemplo n.º 5
0
 /**
  * init()
  *
  * @return \Zend\Tool\Project\Context\Zf\ControllerFile
  */
 public function init()
 {
     $this->_filesystemName = $this->_moduleName = $this->_resource->getAttribute('moduleName');
     parent::init();
     return $this;
 }