public function testNoConflictShouldBeDisabledDefault() { $this->assertFalse(ZendX_MooTools_View_Helper_MooTools::getNoSafeMode()); }
/** * Renders all javascript file related stuff of the MooTools enviroment. * * @return string */ protected function _renderScriptTags() { $scriptTags = ''; if (($this->getRenderMode() & ZendX_MooTools::RENDER_LIBRARY) > 0) { $source = $this->_getMooToolsLibraryPath(); $scriptTags .= '<script type="text/javascript" src="' . $source . '"></script>' . PHP_EOL; if ($this->mooreIsEnabled()) { $moorePath = $this->_getMooToolsMooreLibraryPath(); $scriptTags .= '<script type="text/javascript" src="' . $moorePath . '"></script>' . PHP_EOL; } if (ZendX_MooTools_View_Helper_MooTools::getNoSafeMode() == true) { $scriptTags .= '<script type="text/javascript">var $ = document.id;</script>' . PHP_EOL; } } if (($this->getRenderMode() & ZendX_MooTools::RENDER_SOURCES) > 0) { foreach ($this->getJavascriptFiles() as $javascriptFile) { $scriptTags .= '<script type="text/javascript" src="' . $javascriptFile . '"></script>' . PHP_EOL; } } return $scriptTags; }