public function getLocalNextAction() { $nextActions = MISSION_STATUS::getNextAction(Utility::getCurrentUserID(), $this); $cancelActions = array(); foreach ($nextActions as $orderAction) { $strOfOrderStatus = MISSION_STATUS::getStrOfStatus($orderAction); $strOfOrderStatus['nextaction'] = $strOfOrderStatus['status']; unset($strOfOrderStatus['status']); unset($strOfOrderStatus['statusStr']); unset($strOfOrderStatus['statusDescription']); if ($orderAction == MISSION_STATUS::DISABLED || $orderAction == MISSION_STATUS::REJECT) { $cancelActions[] = $strOfOrderStatus; } else { $nextActions[] = $strOfOrderStatus; } } return array('cancelActions' => $cancelActions, 'nextActions' => $nextActions); }