function updateERPTSSettings($xmlStr) { if (!($domDoc = domxml_open_mem($xmlStr))) { return false; } $erptsSettings = new eRPTSSettings(); $erptsSettings->parseDomDocument($domDoc); $ret = $erptsSettings->updateRecord(); return $ret; }