function DatabaseHandler::get_flightpath_settings

7.x DatabaseHandler.php DatabaseHandler::get_flightpath_settings()
6.x DatabaseHandler.php DatabaseHandler::get_flightpath_settings()

File

classes/DatabaseHandler.php, line 1472

Class

DatabaseHandler

Code

function get_flightpath_settings() 
 {
  // Returns an array of everything in the flightpath_settings table.
  $rtn_array = array();
  $res = $this->db_query("SELECT * FROM flightpath_settings ");
  while ($cur = $this->db_fetch_array($res)) 
   {
    $rtn_array [$cur ["variable_name"]] = trim($cur ["value"]);
  }

  return $rtn_array;

}