From: Anthony Talarico Date: Thu, 31 Mar 2016 14:25:06 +0000 (-0400) Subject: testing class addition to data file X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=692a9e11dc9937c58b1bb825202ced98847c8653;p=prog%2FPelstonFlightData.git testing class addition to data file --- diff --git a/glmfds.php b/glmfds.php index 3aa65fd..e669fcc 100644 --- a/glmfds.php +++ b/glmfds.php @@ -5,35 +5,34 @@ include( 'functions.inc' ); include( 'xml_functions.inc' ); define( 'EXPECTED_NWS_MSG_MAJ_VERSION', '1' ); // Expected message XML message version from NWA +echo 'Gaslight Media - Northwest Airlines Flight Data Capture

'; +class FlightData{ + + /** + * WordPress Database Object + * + * @var $wpdb + * @access public + */ + public $wpdb; + /** + * Plugin Configuration Data + * + * @var $config + * @access public + */ + public $config; + + public function __construct ($wpdb, $config) + { + // Save WordPress Database object + $this->wpdb = $wpdb; + + // Save plugin configuration object + $this->config = $config; + } + -//class FlightData{ -// -// /** -// * WordPress Database Object -// * -// * @var $wpdb -// * @access public -// */ -// public $wpdb; -// /** -// * Plugin Configuration Data -// * -// * @var $config -// * @access public -// */ -// public $config; -// -// public function __construct ($wpdb, $config) -// { -// // Save WordPress Database object -// $this->wpdb = $wpdb; -// -// // Save plugin configuration object -// $this->config = $config; -// } - - - echo 'Gaslight Media - Northwest Airlines Flight Data Capture

'; // Delete flight data older than yesterday @@ -229,6 +228,6 @@ if( trim($XMLData) != '' ) echo ''; - +} ?>