本文整理汇总了PHP中Zend_Registry::_unsetInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Registry::_unsetInstance方法的具体用法?PHP Zend_Registry::_unsetInstance怎么用?PHP Zend_Registry::_unsetInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Registry
的用法示例。
在下文中一共展示了Zend_Registry::_unsetInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
// clear registry for locale testing
Zend_Registry::_unsetInstance();
// restore default options value
Zle_View_Helper_FormDatePicker::setDatePickerDefaultOptions($this->_helperOptions);
}
示例2: tearDown
public function tearDown()
{
$this->_helper = null;
$this->_view = null;
// View-Helpers use the registry!
Zend_Registry::_unsetInstance();
}
示例3: minimalBootstrapAndGenerateFile
public static function minimalBootstrapAndGenerateFile()
{
self::minimalBootstrap();
file_put_contents('cache/setup' . Kwf_Setup::CACHE_SETUP_VERSION . '.php', self::generateCode());
Zend_Registry::_unsetInstance();
//cache/setup?.php will call setClassName again
}
示例4: setUp
public function setUp()
{
Zend_Registry::_unsetInstance();
$this->view = $this->getView();
$this->jquery = new ZendX_JQuery_View_Helper_JQuery_Container();
$this->jquery->setView($this->view);
Zend_Registry::set('ZendX_JQuery_View_Helper_JQuery', $this->jquery);
}
示例5: 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_Registry::_unsetInstance();
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
$this->view = $this->getView();
$this->helper = new Zend_Dojo_View_Helper_ValidationTextBox();
$this->helper->setView($this->view);
}
示例6: setUp
public function setUp()
{
Zend_Registry::_unsetInstance();
$this->view = $this->getView();
$this->helper = new ZendX_MooTools_View_Helper_MooTools_Container();
$this->helper->setView($this->view);
Zend_Registry::set('ZendX_MooTools_View_Helper_MooTools', $this->helper);
}
示例7: 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_Registry::_unsetInstance();
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
$this->view = $this->getView();
$this->helper = new Zend_Dojo_View_Helper_AccordionContainer();
$this->helper->setView($this->view);
}
示例8: testGetAnonServiceMap
/**
* @group ServerTests
*/
public function testGetAnonServiceMap()
{
// unset registry (and the user object)
Zend_Registry::_unsetInstance();
$smd = Tinebase_Server_Json::getServiceMap();
$smdArray = $smd->toArray();
$this->assertTrue(isset($smdArray['services']['Tinebase.ping']));
}
示例9: 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_Registry::_unsetInstance();
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
$this->view = $this->getView();
$this->helper = new Zend_Dojo_View_Helper_FilteringSelect();
$this->helper->setView($this->view);
}
示例10: tearDown
public function tearDown()
{
$this->_helper = null;
$this->_view = null;
Robo47_View_Helper_Ckeditor::unsetDefaultOptions();
// View-Helpers use the registry!
Zend_Registry::_unsetInstance();
}
示例11: 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_Registry::_unsetInstance();
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
$this->view = $this->getView();
$this->element = $this->getElement();
$this->element->setView($this->view);
}
示例12: 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_Registry::_unsetInstance();
$this->view = $this->getView();
$this->helper = new Zend_Dojo_View_Helper_Dojo_Container();
$this->helper->setView($this->view);
Zend_Registry::set('Zend_Dojo_View_Helper_Dojo', $this->helper);
Zend_Dojo_View_Helper_Dojo::setUseProgrammatic();
}
示例13: setUp
public function setUp()
{
Zend_Registry::_unsetInstance();
Zend_Form::setDefaultTranslator(null);
if (isset($this->error)) {
unset($this->error);
}
$this->element = new Zend_Form_Element('foo');
Zend_Controller_Action_HelperBroker::resetHelpers();
}
示例14: testHookStorageViaAddPluginHookFunction
public function testHookStorageViaAddPluginHookFunction()
{
$this->broker->register();
$this->broker->setCurrentPluginDirName('fake-plugin-name');
add_plugin_hook('initialize', 'fake_plugin_initialize');
// Using the registry should not interfere with the other unit tests.
Zend_Registry::_unsetInstance();
$callback = $this->broker->getHook('fake-plugin-name', 'initialize');
$this->assertEquals('fake_plugin_initialize', $callback[0]);
}
示例15: tearDown
public function tearDown()
{
$loader = Zend_Loader_Autoloader::getInstance();
$HtmlPurifierLoaders = $loader->getNamespaceAutoloaders('HtmlPurifier');
foreach ($HtmlPurifierLoaders as $hloader) {
$loader->removeAutoloader($hloader, 'HtmlPurifier');
}
Robo47_Filter_HtmlPurifier::setDefaultPurifier();
Zend_Registry::_unsetInstance();
}