WIP Voicenumber Billing 2024-07-05
This commit is contained in:
@@ -200,8 +200,20 @@ class Contract extends mfBaseModel {
|
||||
if(!$configvalues) return null;
|
||||
if(!array_key_exists($itemname, $configvalues)) return null;
|
||||
|
||||
$confitem = $configvalues[$itemname];
|
||||
return $confitem->value;
|
||||
$configitem = $configvalues[$itemname];
|
||||
return $configitem->value;
|
||||
}
|
||||
|
||||
public function setConfigValue($itemname, $value) {
|
||||
$configvalues = $this->getProperty("configvalues");
|
||||
if(!$configvalues) return null;
|
||||
if(!array_key_exists($itemname, $configvalues)) return null;
|
||||
|
||||
$configitem = $configvalues[$itemname];
|
||||
|
||||
$configitem->value->set($value);
|
||||
$configitem->value->save();
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getProperty($name) {
|
||||
|
||||
Reference in New Issue
Block a user