string system.branch
Returns the git branch of the IFE installation.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.branch // => 'master'
... |
string system.get(key)
Returns the value of key as string or null if no value is set under the key.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
var value = system.get('some.globalValue');
... |
Parameter key:string (required)
The key to be looked up in the flexAttributes.
string system.host
Returns the hostname that is set up in the IFE configuration.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.host // => 'https://example.com'
... |
system.increment(key)
Increases the value of any flex attribute by 1 permanently in an atomic fashion.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.increment("some.globalCount")
... |
Parameter key:string (required)
The key to be incremented in the flexAttributes.
boolean system.isCacheActive()
Returns true, if the cache is active, otherwise false.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
if (system.isCacheActive() === true)
{
...
}
... |
boolean system.isDeveloperCacheActive ()
Returns true, if the developer cache is active, otherwise false.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
if (system.isDeveloperCacheActive () === true)
{
...
}
... |
object[] system.jsmas
Returns a list of objects describing the available jsmas, their methods and arguments.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.jsmas // => [{ name: 'address', methods: [{ method: 'update', parameters: [['req', 'attributes']] }] }, ...]
... |
string system.minifyCSS ()
Returns a minified version of CSS
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
var minCSS = system.minifyCSS();
... |
string system.minifyJS ()
Returns a minified version of JS
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
var minJS = system.minifyJS();
... |
string system.name
Returns the Backend-Title from the IFE configuration.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
var sysName = system.name(); // => 'IFE ... Staging'
... |
system.now()
Returns the current time in nanoseconds.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.now() // => 1476801294345673109
... |
string system.releaseDate
Returns the date of the deployment of the current installation.
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.releaseDate // => '2016-10-18'
... |
system.remove(key)
Removes the key from the flexAttributes
Example
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
...
system.remove('some.globalValue')
... |
Parameter key:string (required)
The key to be removed from the flexAttributes.