function updatePropAssessUses($xmlStr) { if (!($domDoc = domxml_open_mem($xmlStr))) { return false; } $propAssessUses = new PropAssessUses(); $propAssessUses->parseDomDocument($domDoc); $ret = $propAssessUses->updateRecord(); return $ret; }
function updateStatus($statusIDArray = "") { $rows = 0; $this->selectRecords(); foreach ($this->arrayList as $key => $value) { $value->status = "inactive"; $value->updateRecord(); } foreach ($statusIDArray as $key => $value) { $propAssessUses = new PropAssessUses(); $propAssessUses->selectRecord($value); $propAssessUses->status = "active"; $propAssessUses->updateRecord(); $rows++; } return $rows; }