当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Tool_Project_Context_Filesystem_Directory类代码示例

本文整理汇总了PHP中Zend_Tool_Project_Context_Filesystem_Directory的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Tool_Project_Context_Filesystem_Directory类的具体用法?PHP Zend_Tool_Project_Context_Filesystem_Directory怎么用?PHP Zend_Tool_Project_Context_Filesystem_Directory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Zend_Tool_Project_Context_Filesystem_Directory类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 public function init()
 {
     if ($this->_resource->hasAttribute('classNamePrefix')) {
         $this->_classNamePrefix = $this->_resource->getAttribute('classNamePrefix');
     }
     parent::init();
 }
开发者ID:nhp,项目名称:shopware-4,代码行数:7,代码来源:ApplicationDirectory.php

示例2: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory
  */
 public function init()
 {
     $this->_forControllerName = $this->_resource->getAttribute('forControllerName');
     $this->_filesystemName = $this->_forControllerName;
     parent::init();
     return $this;
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:12,代码来源:ViewControllerScriptsDirectory.php

示例3: init

 /**
  * 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;
 }
开发者ID:VUW-SIM-FIS,项目名称:emiemi,代码行数:12,代码来源:TestLibraryNamespaceDirectory.php

示例4: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Filesystem_File
  */
 public function init()
 {
     if ($this->_resource->hasAttribute('filesystemName')) {
         $this->_filesystemName = $this->_resource->getAttribute('filesystemName');
     }
     parent::init();
     return $this;
 }
开发者ID:dafik,项目名称:zf-scaffold,代码行数:13,代码来源:CustomDirectory.php

示例5: init

 /**
  * 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;
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:20,代码来源:ProjectProvidersDirectory.php

示例6: create

 /**
  * create()
  *
  */
 public function create()
 {
     parent::create();
     $zfPath = $this->_getZfPath();
     if ($zfPath != false) {
         $zfIterator = new RecursiveDirectoryIterator($zfPath);
         foreach ($rii = new RecursiveIteratorIterator($zfIterator, RecursiveIteratorIterator::SELF_FIRST) as $file) {
             $relativePath = preg_replace('#^' . preg_quote(realpath($zfPath), '#') . '#', '', realpath($file->getPath())) . DIRECTORY_SEPARATOR . $file->getFilename();
             if (strpos($relativePath, DIRECTORY_SEPARATOR . '.') !== false) {
                 continue;
             }
             if ($file->isDir()) {
                 mkdir($this->getBaseDirectory() . DIRECTORY_SEPARATOR . $this->getFilesystemName() . $relativePath);
             } else {
                 copy($file->getPathname(), $this->getBaseDirectory() . DIRECTORY_SEPARATOR . $this->getFilesystemName() . $relativePath);
             }
         }
     }
 }
开发者ID:brianbui171,项目名称:website_zend_1.11,代码行数:23,代码来源:ZfStandardLibraryDirectory.php

示例7: create

 public function create()
 {
     parent::create();
 }
开发者ID:brianbui171,项目名称:website_zend_1.11,代码行数:4,代码来源:DocsDirectory.php

示例8: create

 /**
  * create()
  *
  * @return Zend_Tool_Project_Context_System_ProjectDirectory
  */
 public function create()
 {
     if (file_exists($this->getPath())) {
         /*
         foreach (new DirectoryIterator($this->getPath()) as $item) {
             if (!$item->isDot()) {
                 if ($registry->getClient()->isInteractive()) {
                     // @todo prompt for override
                 } else {
                     require_once 'Zend/Tool/Project/Context/Exception.php';
                     throw new Zend_Tool_Project_Context_Exception('This directory is not empty, project creation aborted.');
                 }
                 break;
             }
         }
         */
     }
     parent::create();
     return $this;
 }
开发者ID:bartolomeu,项目名称:estoque_gusella,代码行数:25,代码来源:ProjectDirectory.php

示例9: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ControllerFile
  */
 public function init()
 {
     $this->_filesystemName = $this->_forModuleName = $this->_resource->getAttribute('forModuleName');
     parent::init();
     return $this;
 }
开发者ID:alefernie,项目名称:intranet,代码行数:11,代码来源:TestApplicationModuleDirectory.php

示例10: create

 /**
  * create()
  *
  * @return Zend_Tool_Project_Context_System_ProjectDirectory
  */
 public function create()
 {
     parent::create();
     return $this;
 }
开发者ID:hjr3,项目名称:zf2,代码行数:10,代码来源:ProjectDirectory.php


注:本文中的Zend_Tool_Project_Context_Filesystem_Directory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。