Class JSEngineConfiguration
category |
System |
---|---|
package |
Extensions |
__construct(\NonEmptyStringType $baseUrl, \NonEmptyStringType $templatePath, \LanguageCode $languageCode, \LanguageTextManager $languageTextManager, \EditableKeyValueCollection $sections, \BoolType $debugMode, \StringType $pageToken = null, \StringType $cacheToken = null)
\NonEmptyStringType
\NonEmptyStringType
\LanguageCode
\LanguageTextManager
\EditableKeyValueCollection
\BoolType
\StringType
\StringType
_getSections() : array
Overload example for adding the section "section_name":
protected function _getSections() { $additionalSection = array('js_section_name' => 'section_name'); $this->sections = array_merge($this->sections, $additionalSection);
return parent::_getSections();
}
Use in JS: jse.core.lang.translate('phrase_name', 'js_section_name') // phrase value will be returned;
Visit https://developers.gambio.de for more information.
array
_getTranslations() : string
string
_init()
asJson() : string
string
getJavaScript() : string
string
config : array
var |
---|
array
languageTextManager : \LanguageTextManager
var |
---|
\LanguageTextManager
sections : array
var |
---|
array
environment : string
var |
---|
string
baseUrl : string
var |
---|
string
templatePath : string
var |
---|
string
languageCode : string
var |
---|
string
pageToken : string
var |
---|
string
cacheToken : string
var |
---|
string
bustFiles : boolean
var |
---|
boolean