function updateMachineriesDepreciation($xmlStr) { if (!($domDoc = domxml_open_mem($xmlStr))) { return false; } $machineriesDepreciation = new MachineriesDepreciation(); $machineriesDepreciation->parseDomDocument($domDoc); $ret = $machineriesDepreciation->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) { $machineriesDepreciation = new MachineriesDepreciation(); $machineriesDepreciation->selectRecord($value); $machineriesDepreciation->status = "active"; $machineriesDepreciation->updateRecord(); $rows++; } return $rows; }