public function loadByImportURLIDAndId($import_url_id, $id)
 {
     global $DB;
     $stat = $DB->prepare("SELECT imported_event.* FROM imported_event " . "WHERE imported_event.import_url_id =:import_url_id AND imported_event.id =:id");
     $stat->execute(array('id' => $id, 'import_url_id' => $import_url_id));
     if ($stat->rowCount() > 0) {
         $event = new ImportedEventModel();
         $event->setFromDataBaseRow($stat->fetch());
         return $event;
     }
 }
 public function fetchAll()
 {
     $this->buildStart();
     $this->build();
     $this->buildStat();
     $results = array();
     while ($data = $this->stat->fetch()) {
         $event = new ImportedEventModel();
         $event->setFromDataBaseRow($data);
         $results[] = $event;
     }
     return $results;
 }