本文整理汇总了PHP中Zend_View_Interface::getPluginLoader方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_View_Interface::getPluginLoader方法的具体用法?PHP Zend_View_Interface::getPluginLoader怎么用?PHP Zend_View_Interface::getPluginLoader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_View_Interface
的用法示例。
在下文中一共展示了Zend_View_Interface::getPluginLoader方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: enableView
/**
* jQuery-enable a view instance
*
* @param \Zend_View_Interface $view
* @return void
*/
public static function enableView(\Zend_View_Interface $view)
{
if (false === $view->getPluginLoader('helper')->getPaths('MUtil_JQuery_View_Helper')) {
$view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper');
$view->addHelperPath('MUtil/JQuery/View/Helper', 'MUtil_JQuery_View_Helper');
}
}
示例2: setView
/**
* Set the view object
*
* Ensures that the view object has the dojo view helper path set.
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setView(Zend_View_Interface $view = null)
{
if (null !== $view) {
if (false === $view->getPluginLoader('helper')->getPaths('Zend_Dojo_View_Helper')) {
$view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
}
}
return parent::setView($view);
}
示例3: setView
public function setView(Zend_View_Interface $view = null)
{
if (null !== $view) {
if (false === $view->getPluginLoader('helper')->getPaths('Ynresponsiveevent_Widget_EventFooterAbout_View_Helper')) {
$view->addHelperPath(APPLICATION_PATH . '/application/modules/Ynresponsiveevent/widgets/event-footer-about/View/Helper', 'Ynresponsiveevent_Widget_EventFooterAbout_View_Helper');
}
}
return parent::setView($view);
}
示例4: enableView
/**
* Dojo-enable a view instance
*
* @param Zend_View_Interface $view
* @return void
*/
public static function enableView(Zend_View_Interface $view)
{
if (false === $view->getPluginLoader('helper')->getPaths('Zend_Dojo_View_Helper')) {
$view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper');
}
}
示例5: setView
/**
* Set the view object
*
* Ensures that the view object has the CKEditor view helper path set.
*
* @param \Zend_View_Interface $view
* @return CKEditor_Form_CKEditor
*/
public function setView(\Zend_View_Interface $view = null)
{
if (null !== $view) {
if (false === $view->getPluginLoader('helper')->getPaths('CKEditor_View_Helper')) {
$view->addHelperPath('CKEditor/View/Helper', 'CKEditor_View_Helper');
}
}
if (!file_exists($this->basePath . '/ckeditor.js')) {
throw new \Zend_Exception('Use setBasePath() to set the full path to the file ckeditor.php in the public folder of ckedit.');
}
return parent::setView($view);
}