getConfigPref for globally configurable fallbacks

This commit is contained in:
Mikael Nordfeldth 2015-02-03 21:58:17 +01:00
parent ff004c5912
commit 4eea68e557
1 changed files with 6 additions and 0 deletions

View File

@ -1579,6 +1579,12 @@ class Profile extends Managed_DataObject
}
}
// The same as getPref but will fall back to common_config value for the same namespace/topic
public function getConfigPref($namespace, $topic)
{
return Profile_prefs::getConfigData($this, $namespace, $topic);
}
public function setPref($namespace, $topic, $data) {
return Profile_prefs::setData($this, $namespace, $topic, $data);
}