config package
public function contains(string configKey) returns (boolean)
Checks whether the given key is in the configuration registry
Parameter Name | Data Type | Description |
---|---|---|
configKey | string | The configuration key to be looked-up |
Return Variable | Data Type | Description |
---|---|---|
boolean | Returns true if the key is present; if not returs false |
public function getAsString(string configKey) returns (string | null)
Retrieves the specified configuration value as a string
Parameter Name | Data Type | Description |
---|---|---|
configKey | string | The configuration to be retrieved |
Return Variable | Data Type | Description |
---|---|---|
string | null | Configuration value mapped by the configKey |
public function setConfig(string configKey, string configValue)
Sets the specified key/value pair as a configuration
Parameter Name | Data Type | Description |
---|---|---|
configKey | string | The key of the configuration value to be set |
configValue | string | The configuration value to be set |