GetSetting (MythXML)
From MythTV Official Wiki
Contents |
Description
Pull one setting value from the `settings` table.
Inputs
- Key - setting name
- HostName - (optional) defaults to 'NULL'
- To use 'NULL', option must not be passed. Otherwise 'NULL' will be used as a string.
- Default - (optional) default value if key not found
Success
<?xml version="1.0" encoding="utf-8"?>
<GetSettingResponse>
<Count>1</Count>
<HostName></HostName>
<Values>
<Value key='DBSchemaVer'>1263</Value>
</Values>
</GetSettingResponse>
Failure
<?xml version="1.0" encoding="utf-8"?>
<GetSettingResponse>
<Count>1</Count>
<HostName></HostName>
<Values>
<Value key='NotDBSchemaVer'></Value>
</Values>
</GetSettingResponse>