Esempio 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 History();
         $history->setPropertiesFromArray($data);
     }
     return $history instanceof History ? $history : false;
 }
Esempio n. 2
0
 public function getStatusHistory()
 {
     return OrderHistory::getForOrder($this);
 }