Ejemplo n.º 1
0
 /** 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();
 }
Ejemplo n.º 2
0
 /** Insert flight history into the database */
 public function insertFlightHistory($args)
 {
     FlightHistoryDB::insertFlightHistory($args);
 }