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


PHP Zend_Controller_Action_HelperBroker::resetHelpers方法代码示例

本文整理汇总了PHP中Zend_Controller_Action_HelperBroker::resetHelpers方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Controller_Action_HelperBroker::resetHelpers方法的具体用法?PHP Zend_Controller_Action_HelperBroker::resetHelpers怎么用?PHP Zend_Controller_Action_HelperBroker::resetHelpers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Controller_Action_HelperBroker的用法示例。


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

示例1: setUp

 public function setUp()
 {
     // Make sure only our fake Helper is available
     Zend_Controller_Action_HelperBroker::resetHelpers();
     Zend_Controller_Action_HelperBroker::addHelper(new Waf_Zend_Controller_ActionTest_TestHelper());
     $this->controller = new Waf_Zend_Controller_Action($this->getMock('Zend_Controller_Request_Abstract'), $this->getMock('Zend_Controller_Response_Abstract'));
 }
开发者ID:JurJean,项目名称:waf-model,代码行数:7,代码来源:ActionTest.php

示例2: setUp

 public function setUp()
 {
     $this->_controller = Zend_Controller_Front::getInstance();
     $this->_controller->resetInstance();
     $this->_controller->setControllerDirectory(dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files')->setParam('noErrorHandler', true)->setParam('noViewRenderer', true)->returnResponse(true)->throwExceptions(false);
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:7,代码来源:FrontTest.php

示例3: setUp

 public function setUp()
 {
     $this->front = Zend_Controller_Front::getInstance();
     $this->front->resetInstance();
     $this->front->setParam('noViewRenderer', true)->setParam('noErrorHandler', true);
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:7,代码来源:HelperBrokerTest.php

示例4: clean

 private function clean()
 {
     Zend_Controller_Front::getInstance()->resetInstance();
     Zend_Auth::getInstance()->clearIdentity();
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->request = null;
     $this->response = null;
 }
开发者ID:phpscr,项目名称:usvn,代码行数:8,代码来源:Controller.php

示例5: setUp

 public function setUp()
 {
     $this->_controller = new Zend_Controller_ActionTest_TestController(new Zend_Controller_Request_Http(), new Zend_Controller_Response_Cli(), array('foo' => 'bar', 'bar' => 'baz'));
     Zend_Controller_Front::getInstance()->resetInstance();
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $redirector = $this->_controller->getHelper('redirector');
     $redirector->setExit(false);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:8,代码来源:ActionTest.php

示例6: tearDown

 /**
  * See {@link PHPUnit_Framework_TestCase::tearDown()} for details.
  */
 protected function tearDown()
 {
     $this->controller = null;
     $this->request = null;
     $this->response = null;
     Zend_Controller_Action_HelperBroker::resetHelpers();
     parent::tearDown();
 }
开发者ID:matthimatiker,项目名称:molcomponents,代码行数:11,代码来源:ActionParameterTest.php

示例7: setUp

 public function setUp()
 {
     $this->front = Zend_Controller_Front::getInstance();
     $this->front->resetInstance();
     $this->front->setParam('noViewRenderer', true)->setParam('noErrorHandler', true)->throwExceptions(true);
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
     $viewRenderer->setActionController();
 }
开发者ID:travisj,项目名称:zf,代码行数:9,代码来源:HelperBrokerTest.php

示例8: setUp

 public function setUp()
 {
     Zend_Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     $this->element = new Zend_Form_Element('foo');
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
开发者ID:jon9872,项目名称:zend-framework,代码行数:9,代码来源:ElementTest.php

示例9: setUp

 public function setUp()
 {
     $this->clearRegistry();
     Zend_Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->form = new Zend_Form();
 }
开发者ID:vicfryzel,项目名称:zf,代码行数:10,代码来源:FormTest.php

示例10: setUp

 public function setUp()
 {
     Zend_Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->loader = new Zend_Loader_PluginLoader(array('Zend_Form_Decorator' => 'Zend/Form/Decorator'));
     $this->group = new Zend_Form_DisplayGroup('test', $this->loader);
 }
开发者ID:lortnus,项目名称:zf1,代码行数:10,代码来源:DisplayGroupTest.php

示例11: setUp

 public function setUp()
 {
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->loader = new Zend_Loader_PluginLoader(
         array('Zend_Form_Decorator' => 'Zend/Form/Decorator')
     );
     $this->group = new Zend_Form_DisplayGroup(
         'test',
         $this->loader
     );
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:11,代码来源:DisplayGroupTest.php

示例12: setUp

 protected function setUp()
 {
     $db = new Zend_Db_Adapter_Pdo_Sqlite(array('dbname' => dirname(__FILE__) . '/Paginator/_files/test.sqlite'));
     $this->_query = $db->select()->from('test');
     $this->_testCollection = range(1, 101);
     $this->_paginator = Zend_Paginator::factory($this->_testCollection);
     $this->_config = new Zend_Config_Xml(dirname(__FILE__) . '/Paginator/_files/config.xml');
     // get a fresh new copy of ViewRenderer in each tests
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->_restorePaginatorDefaults();
 }
开发者ID:lortnus,项目名称:zf1,代码行数:11,代码来源:PaginatorTest.php

示例13: setUp

 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Zend_Controller_Action_Helper_AutoCompleteTest_LayoutOverride::$_mvcInstance = null;
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->request = new Zend_Controller_Request_Http();
     $this->response = new Zend_Controller_Response_Cli();
     $this->front = Zend_Controller_Front::getInstance();
     $this->front->resetInstance();
     $this->front->setRequest($this->request)->setResponse($this->response);
     $this->viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
     $this->layout = Zend_Layout::startMvc();
 }
开发者ID:lortnus,项目名称:zf1,代码行数:18,代码来源:AutoCompleteTest.php

示例14: setUp

 public function setUp()
 {
     // Store original autoloaders
     $this->loaders = spl_autoload_functions();
     if (!is_array($this->loaders)) {
         // spl_autoload_functions does not return empty array when no
         // autoloaders registered...
         $this->loaders = array();
     }
     Zend_Loader_Autoloader::resetInstance();
     $this->autoloader = Zend_Loader_Autoloader::getInstance();
     $this->application = new Zend_Application('testing');
     $this->bootstrap = new ZfAppBootstrap($this->application);
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
开发者ID:hjr3,项目名称:zf2,代码行数:15,代码来源:ViewTest.php

示例15: setUp

 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Zend_Controller_Action_Helper_ContextSwitchTest_LayoutOverride::resetMvcInstance();
     Zend_Controller_Action_HelperBroker::resetHelpers();
     $this->front = Zend_Controller_Front::getInstance();
     $this->front->resetInstance();
     $this->front->addModuleDirectory(dirname(__FILE__) . '/../../_files/modules');
     $this->layout = Zend_Layout::startMvc();
     $this->helper = new Zend_Controller_Action_Helper_ContextSwitch();
     Zend_Controller_Action_HelperBroker::addHelper($this->helper);
     $this->request = new Zend_Controller_Request_Http();
     $this->response = new Zend_Controller_Response_Cli();
     $this->front->setRequest($this->request)->setResponse($this->response)->addControllerDirectory(dirname(__FILE__));
     $this->view = new Zend_View();
     $this->viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
     $this->viewRenderer->setView($this->view);
     $this->controller = new Zend_Controller_Action_Helper_ContextSwitchTestController($this->request, $this->response, array());
     $this->controller->setupContexts();
     $this->helper->setActionController($this->controller);
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:26,代码来源:ContextSwitchTest.php


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