Пример #1
0
 /**
  * Import Features/Events from HEK database to the helioviewer for the requested time range
  *
  * @return void
  */
 public function importEvents()
 {
     include_once HV_ROOT_DIR . '/../src/Event/HEKAdapter.php';
     $hek = new Event_HEKAdapter();
     if (array_key_exists('period', $this->_options)) {
         $period = $this->_options['period'];
     } else {
         $period = null;
     }
     // Query the HEK
     $events = $hek->importEvents($period);
     header('Content-Type: application/json');
     echo json_encode('{"status":"success"}');
 }