Config

zanata/config~ Config

The configuration class capsulating zanata.xml and zanata.ini file.

Constructor

new Config(fileopt)

Source:

This class provides a reader only. even if you change something with module:zanata/config~Config#set method, it won't be saved into the files. To access values in zanata.xml, 'config.' is prefixed to the key. otherwise will be a value in zanata.ini.

Parameters:
Name Type Attributes Default Description
file string <optional>
'./zanata.xml'

the place of zanata.xml.

Methods

get(name)

Source:

Obtain the value corresponding to the name

Parameters:
Name Type Description
name string

the key name

set(name, v)

Source:

Set the value corresponding to the name

Parameters:
Name Type Description
name string

the key name

v *

the value