<?php

$assignedTo = Utils::getUrlParam('user_id');
$cmd = Utils::getUrlParam('cmd');
$status = Utils::getUrlParam('status');
$order = Utils::getOrderById();
$order->setStatus($cmd);
$order->setAssignedTo($assignedTo);
$dao = new StatusDao();
$dao->updateOrderStatus($order);
Utils::redirect('dashboard', array('status' => $status, 'assigned_to' => $assignedTo));
Beispiel #2
0
 private function getStatusObject($status_id)
 {
     $status_dao = new StatusDao();
     return $status_dao->get_where("number = {$status_id}")[0];
 }