• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Zend_Tool_Project_Context_Filesystem_File类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: copyFileContent

 public static function copyFileContent(Zend_Tool_Project_Context_Filesystem_File $resource)
 {
     $path = realpath(__DIR__ . '/templates/project') . '/';
     if ($resource->getResource()->getAttribute('sourceName')) {
         $template = $resource->getResource()->getAttribute('sourceName');
     } else {
         $template = $resource->getResource()->getAttribute('filesystemName');
     }
     /** @noinspection PhpToStringImplementationInspection */
     if (Dfi_File::isReadable($path . $template)) {
         return file_get_contents($path . $template);
     } else {
         throw new ZFscaffold_ZfTool_Exception('template defined but not found: ' . $template, self::MSG_ERROR);
     }
 }
开发者ID:dafik,项目名称:zf-scaffold,代码行数:15,代码来源:ScaffoldProvider.php


示例2: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_TestLibraryFile
  */
 public function init()
 {
     $this->_forClassName = $this->_resource->getAttribute('forClassName');
     $this->_filesystemName = ucfirst(ltrim(strrchr($this->_forClassName, '_'), '_')) . 'Test.php';
     parent::init();
     return $this;
 }
开发者ID:georgepaul,项目名称:socialstrap,代码行数:12,代码来源:TestLibraryFile.php


示例3: init

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


示例4: init

 /**
  * init()
  *
  */
 public function init()
 {
     $this->_formName = $this->_resource->getAttribute('formName');
     $this->_moduleName = $this->_resource->getAttribute('moduleName');
     $this->_filesystemName = ucfirst($this->_formName) . '.php';
     parent::init();
 }
开发者ID:omusico,项目名称:logica,代码行数:11,代码来源:ZfsFormFile.php


示例5: init

 public function init()
 {
     parent::init();
     $this->_applicationConfigFile = $this->_resource->getProfile()->search('ApplicationConfigFile');
     $this->_applicationDirectory = $this->_resource->getProfile()->search('ApplicationDirectory');
     if ($this->_applicationConfigFile === false || $this->_applicationDirectory === false) {
         throw new Exception('To use the BootstrapFile context, your project requires the use of both the "ApplicationConfigFile" and "ApplicationDirectory" contexts.');
     }
 }
开发者ID:cljk,项目名称:kimai,代码行数:9,代码来源:BootstrapFile.php


示例6: init

 /**
  * init() is called after resources have been assembled, this effectively
  * gives a "resource" within a project a "context" to operate under.
  */
 public function init()
 {
     $this->_modelName = $this->_resource->getAttribute('modelName');
     $this->_moduleName = $this->_resource->getAttribute('moduleName');
     $this->_adapter = $this->_resource->getAttribute('adapter');
     $this->_tableName = $this->_resource->getAttribute('tableName');
     $this->_filesystemName = ucfirst($this->_modelName) . '.php';
     parent::init();
 }
开发者ID:rtsantos,项目名称:mais,代码行数:13,代码来源:DbTableModelFile.php


示例7: init

 public function init()
 {
     if (null === $this->_migrationName) {
         list($sec, $msec) = explode(".", microtime(true));
         $this->_migrationName = date('Ymd_His_') . sprintf("%02d", $msec);
     }
     $this->_filesystemName = $this->_migrationName . '.php';
     parent::init();
 }
开发者ID:uglide,项目名称:zfcore-transition,代码行数:9,代码来源:MigrationFile.php


示例8: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ViewScriptFile
  */
 public function init()
 {
     if ($layoutName = $this->_resource->getAttribute('layoutName')) {
         $this->_layoutName = $layoutName;
     } else {
         throw new Exception('Either a forActionName or scriptName is required.');
     }
     parent::init();
     return $this;
 }
开发者ID:cljk,项目名称:kimai,代码行数:15,代码来源:LayoutScriptFile.php


示例9: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ProjectProviderFile
  */
 public function init()
 {
     $this->_projectProviderName = $this->_resource->getAttribute('projectProviderName');
     $this->_actionNames = $this->_resource->getAttribute('actionNames');
     $this->_filesystemName = ucfirst($this->_projectProviderName) . 'Provider.php';
     if (strpos($this->_actionNames, ',')) {
         $this->_actionNames = explode(',', $this->_actionNames);
     } else {
         $this->_actionNames = $this->_actionNames ? array($this->_actionNames) : array();
     }
     parent::init();
     return $this;
 }
开发者ID:bizanto,项目名称:Hooked,代码行数:18,代码来源:ProjectProviderFile.php


示例10: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ViewScriptFile
  */
 public function init()
 {
     if ($forActionName = $this->_resource->getAttribute('forActionName')) {
         $this->_forActionName = $forActionName;
         $this->_filesystemName = $this->_convertActionNameToFilesystemName($forActionName) . '.phtml';
     } elseif ($scriptName = $this->_resource->getAttribute('scriptName')) {
         $this->_scriptName = $scriptName;
         $this->_filesystemName = $scriptName . '.phtml';
     } else {
         throw new Exception('Either a forActionName or scriptName is required.');
     }
     parent::init();
     return $this;
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:19,代码来源:ViewScriptFile.php


示例11: init

 public function init()
 {
     parent::init();
     $applicationConfigFile = $this->_resource->getProfile()->search('ApplicationConfigFile');
     $applicationDirectory = $this->_resource->getProfile()->search('ApplicationDirectory');
     if ($applicationConfigFile === false || $applicationDirectory === false) {
         throw new Exception('To use the BootstrapFile context, your project requires the use of both the "ApplicationConfigFile" and "ApplicationDirectory" contexts.');
     }
     if ($applicationConfigFile->getContext()->exists()) {
         define('APPLICATION_PATH', $applicationDirectory->getPath());
         $applicationOptions = array();
         $applicationOptions['config'] = $applicationConfigFile->getPath();
         $this->_applicationInstance = new Zend_Application('development', $applicationOptions);
     }
 }
开发者ID:c12g,项目名称:stratos-php,代码行数:15,代码来源:BootstrapFile.php


示例12: save

 /**
  * save()
  *
  * Proxy to create
  *
  * @return Zend_Tool_Project_Context_System_ProjectProfileFile
  */
 public function save()
 {
     parent::create();
     return $this;
 }
开发者ID:fredcido,项目名称:cenbrap,代码行数:12,代码来源:ProjectProfileFile.php


示例13: init

 /**
  * init()
  *
  * @return Zend_Tool_Project_Context_Zf_ApplicationConfigFile
  */
 public function init()
 {
     $this->_type = $this->_resource->getAttribute('type');
     parent::init();
     return $this;
 }
开发者ID:be-dmitry,项目名称:zf1,代码行数:11,代码来源:ApplicationConfigFile.php


示例14: init

 /**
  * init()
  *
  */
 public function init()
 {
     $this->_version = $this->_resource->getAttribute('version');
     parent::init();
 }
开发者ID:CEMD-CN,项目名称:MageTool,代码行数:9,代码来源:InstallFile.php


示例15: init

 /**
  * init()
  *
  */
 public function init()
 {
     $this->_className = $this->_resource->getAttribute('name') ? $this->_resource->getAttribute('name') : $this->_filesystemName;
     $this->_filesystemName = ucfirst($this->_className) . '.php';
     parent::init();
 }
开发者ID:CEMD-CN,项目名称:MageTool,代码行数:10,代码来源:AbstractFile.php


示例16: init

 /**
  * Initialize
  *
  * @return Zend_Tool_Project_Context_Zf_ControllerFile
  */
 public function init()
 {
     parent::init();
     $this->setFilesystemName($this->_resource->getAttribute('fileName') . '.php');
     return $this;
 }
开发者ID:netconstructor,项目名称:Centurion,代码行数:11,代码来源:BuildFile.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap