Rho.Config module
Implementation of the Config API.
Get boolean value of config property.
Parameters
Name of the property.
Synchronous Return:
Method Access:
Rho.Config.getPropertyBool(STRING name)
Rho::Config.getPropertyBool(STRING name)
Get integer value of config property.
Parameters
Name of the property.
Synchronous Return:
Method Access:
Rho.Config.getPropertyInt(STRING name)
Rho::Config.getPropertyInt(STRING name)
Get string value of config property.
Parameters
Name of the property.
Synchronous Return:
Method Access:
Rho.Config.getPropertyString(STRING name)
Rho::Config.getPropertyString(STRING name)
Returns true if property exists in the loaded config file.
Parameters
Name of the property.
Synchronous Return:
Method Access:
Rho.Config.isPropertyExists(STRING name)
Rho::Config.isPropertyExists(STRING name)
Load config from the file specified by configPath property.
Synchronous Return:
Method Access:
Rho.Config.loadFromFile()
Rho::Config.loadFromFile()
Remove existing property and optionally save changes to file. Remove properties works only with properties that has been set with setProperty*** methods. Properties from config file doesn’t changed.
Parameters
Name of the property.
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
Synchronous Return:
Method Access:
Rho.Config.removeProperty(STRING name, BOOLEAN saveToFile)
Rho::Config.removeProperty(STRING name, BOOLEAN saveToFile)
Set boolean value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
Parameters
Name of the property.
Value of the property.
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
Synchronous Return:
Method Access:
Rho.Config.setPropertyBool(STRING name, BOOLEAN value, BOOLEAN saveToFile)
Rho::Config.setPropertyBool(STRING name, BOOLEAN value, BOOLEAN saveToFile)
Set integer value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
Parameters
Name of the property.
Value of the property.
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
Synchronous Return:
Method Access:
Rho.Config.setPropertyInt(STRING name, INTEGER value, BOOLEAN saveToFile)
Rho::Config.setPropertyInt(STRING name, INTEGER value, BOOLEAN saveToFile)
Set string value of config property and optionally save changes to file. Properties save to separate file, common file (specify with configPath) doesn’t change.
Parameters
Name of the property.
Value of the property.
If true, save changes to file. All changes will save in separate file, not in common config of a aplication.
Synchronous Return:
Method Access:
Rho.Config.setPropertyString(STRING name, STRING value, BOOLEAN saveToFile)
Rho::Config.setPropertyString(STRING name, STRING value, BOOLEAN saveToFile)
Path to the config file.
Property Access:
myObject.configPath