function getMachineriesDepreciationDetails($machineriesDepreciationID) { $machineriesDepreciation = new MachineriesDepreciation(); $machineriesDepreciation->selectRecord($machineriesDepreciationID); if (!($domDoc = $machineriesDepreciation->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }
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; }