Exemplo n.º 1
0
 private static function getByID($oshID)
 {
     $db = Database::get();
     $data = $db->GetRow("SELECT * FROM " . self::getTableName() . " WHERE oshID=?", $oshID);
     $history = null;
     if (!empty($data)) {
         $history = new OrderStatusHistory();
         $history->setPropertiesFromArray($data);
     }
     return $history instanceof OrderStatusHistory ? $history : false;
 }
Exemplo n.º 2
0
 public function getStatusHandle()
 {
     $history = StoreOrderStatusHistory::getForOrder($this);
     if (!empty($history)) {
         $laststatus = $history[0];
         return $laststatus->getOrderStatusHandle();
     } else {
         return '';
     }
 }
Exemplo n.º 3
0
 public function getStatusHistory()
 {
     return StoreOrderStatusHistory::getForOrder($this);
 }