/** * CentralData::send_all_acars() * * @return */ public static function send_all_acars() { if (!self::central_enabled()) { return false; } if (!($acars_flights = ACARSData::getAllFlights())) { return false; } self::startBody('update_acars'); foreach ($acars_flights as $flight) { self::create_acars_flight($flight); } CronData::set_lastupdate('update_acars'); return self::sendToCentral(); }