function getProvinceDetails($provinceID) { $province = new Province(); $province->selectRecord($provinceID); if (!($domDoc = $province->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) { $province = new Province(); $province->selectRecord($value); $province->status = "active"; $province->updateRecord(); $rows++; } return $rows; }