function updateStatus($statusIDArray = "") { $rows = 0; $this->selectRecords(); foreach ($this->arrayList as $key => $value) { $value->status = "inactive"; $value->updateRecord(); } foreach ($statusIDArray as $key => $value) { $outbox = new Outbox(); $outbox->selectRecord($value); $outbox->status = "active"; $outbox->updateRecord(); $rows++; } return $rows; }