/** Delete a specific flight from the database */ public static function deleteFlight($flight) { FlightHistoryDB::deleteFlightHistory($flight->CONN, $flight->VID); $prepare = parent::getConn()->prepare("DELETE FROM `flight` WHERE `CONN` = :CONN AND `VID` = :VID LIMIT 1"); $prepare->bindParam(':CONN', $flight->CONN); $prepare->bindParam(':VID', $flight->VID); $prepare->execute(); }
/** Insert flight history into the database */ public function insertFlightHistory($args) { FlightHistoryDB::insertFlightHistory($args); }