/** * Returns config value for an environment-specific key. For any other key, use get() function * * @param $name * * @return mixed */ public function getEnvSetting($name) { return Processor::getTagValue($name, $this->getEnvConfig()); }
public static function loopTemplate($moduleName, $templateName, $rows = array()) { $templateText = Locator::getInstance()->getTemplate($moduleName, $templateName); return count($rows) > 0 ? Processor::loopText($templateText, $rows) : ''; }
public function checkMultilingualSetup($multilingual = true) { $multilingual = true; // we emulate multilingual in any way to make sure that language code is written in URLs $templateName = 'scripts.' . ($multilingual ? 'polyglot' : 'monoglot') . '.js'; $fileName = __DIR__ . "/Templates/{$templateName}.html"; $this->addScriptSnippet(Processor::doText(file_get_contents($fileName)), true); }