當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Form_Element_Xhtml::getPluginLoader方法代碼示例

本文整理匯總了PHP中Zend_Form_Element_Xhtml::getPluginLoader方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_Element_Xhtml::getPluginLoader方法的具體用法?PHP Zend_Form_Element_Xhtml::getPluginLoader怎麽用?PHP Zend_Form_Element_Xhtml::getPluginLoader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Form_Element_Xhtml的用法示例。


在下文中一共展示了Zend_Form_Element_Xhtml::getPluginLoader方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getPluginLoader

 /**
  * Get Plugin Loader
  *
  * @param  string $type
  * @return Zend_Loader_PluginLoader_Interface
  */
 public function getPluginLoader($type)
 {
     $type = strtoupper($type);
     if ($type != self::TRANSFER_ADAPTER) {
         return parent::getPluginLoader($type);
     }
     if (!array_key_exists($type, $this->_loaders)) {
         require_once 'Zend/Loader/PluginLoader.php';
         $loader = new Zend_Loader_PluginLoader(array('Zend_File_Transfer_Adapter' => 'Zend/File/Transfer/Adapter/'));
         $this->setPluginLoader($loader, self::TRANSFER_ADAPTER);
     }
     return $this->_loaders[$type];
 }
開發者ID:BGCX067,項目名稱:f1n4l-pr0j3c7-f0r-t3h-0n35-wh0-n33d-17-svn-to-git,代碼行數:19,代碼來源:File.php

示例2: getPluginLoader

 /**
  * Retrieve plugin loader for validator or filter chain
  *
  * Support for plugin loader for Captcha adapters
  *
  * @param  string $type
  * @return Zend_Loader_PluginLoader
  * @throws Zend_Loader_Exception on invalid type.
  */
 public function getPluginLoader($type)
 {
     $type = strtoupper($type);
     if ($type == self::CAPTCHA) {
         if (!isset($this->_loaders[$type])) {
             require_once 'Zend/Loader/PluginLoader.php';
             $this->_loaders[$type] = new Zend_Loader_PluginLoader(array('Zend_Captcha' => 'Zend/Captcha/'));
         }
         return $this->_loaders[$type];
     } else {
         return parent::getPluginLoader($type);
     }
 }
開發者ID:Yaoming9,項目名稱:Projet-Web-PhP,代碼行數:22,代碼來源:Captcha.php

示例3: getPluginLoader

 /**
  * Retrieve plugin loader for validator or filter chain
  *
  * Support for plugin loader for Captcha adapters
  *
  * @param  string $type
  * @return Zend_Loader_PluginLoader
  * @throws Zend_Loader_Exception on invalid type.
  */
 public function getPluginLoader($type)
 {
     $type = strtoupper($type);
     if ($type == self::CAPTCHA) {
         if (!isset($this->_loaders[$type])) {
             $this->_loaders[$type] = new \Zend\Loader\PluginLoader\PluginLoader(array('Zend\\Captcha' => 'Zend/Captcha/'));
         }
         return $this->_loaders[$type];
     } else {
         return parent::getPluginLoader($type);
     }
 }
開發者ID:stunti,項目名稱:zf2,代碼行數:21,代碼來源:Captcha.php


注:本文中的Zend_Form_Element_Xhtml::getPluginLoader方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。