本文整理汇总了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];
}
示例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);
}
}
示例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);
}
}