Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • JSEngineConfiguration

Interfaces

  • CustomerStatusHelperInterface
  • FilesystemHelperInterface

Class JSEngineConfiguration

Class JSEngineConfiguration

Package: Extensions
Category: System
Located at Extensions/JavaScript/JSEngineConfiguration.inc.php

Methods summary

public
# __construct( NonEmptyStringType $baseUrl, NonEmptyStringType $templatePath, LanguageCode $languageCode, LanguageTextManager $languageTextManager, EditableKeyValueCollection $sections, BoolType $debugMode, StringType $pageToken = null, StringType $cacheToken = null )
public string
# asJson( )

Get JSEngine configuration as an JSON encoded string

Get JSEngine configuration as an JSON encoded string

Returns

string
public string
# getJavaScript( )

Returns

string
protected
# _init( )

Initialize JSEngine configuration.

Initialize JSEngine configuration.

protected string
# _getTranslations( )

Get translations array.

Get translations array.

Returns

string
protected array
# _getSections( )

Helper method for adding additional language sections.

Helper method for adding additional language sections.

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.

Returns

array

Properties summary

protected array $config
#
protected LanguageTextManager $languageTextManager
#
protected array $sections
#
protected string $environment
#
protected string $baseUrl
#
protected string $templatePath
#
protected string $languageCode
#
protected string $pageToken
# ''
protected string $cacheToken
# ''
API documentation generated by ApiGen