當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。