public class | source

ServerVariables

Keeps server variables

Constructor Summary

Public Constructor
public

Create instance.

Member Summary

Public Members
public get

Fired on server variables changes.

source

Method Summary

Public Methods
public

add(name: string, value: string)

Add variable.

source
public

edit(name: string, newValue: string)

Edit variable.

source
public

get(name: string): *

Get variable.

source
public

remove(name: string)

Remove variable.

source

Public Constructors

public constructor() source

Create instance.

Public Members

public get changeEvent: Event source

Fired on server variables changes. The handler callback function can take parameters. When the handler is called, object will be passed as only parameter. Object has two properties: type - type change event. value - server variable value.

Public Methods

public add(name: string, value: string) source

Add variable.

Params:

NameTypeAttributeDescription
name string
  • optional

name of variable.

value string
  • optional

] - value of variable.

public edit(name: string, newValue: string) source

Edit variable.

Params:

NameTypeAttributeDescription
name string
  • optional

name of variable.

newValue string
  • optional

] - new value of variable.

public get(name: string): * source

Get variable.

Params:

NameTypeAttributeDescription
name string
  • optional

name of variable.

Return:

*

public remove(name: string) source

Remove variable.

Params:

NameTypeAttributeDescription
name string
  • optional

name of variable.