public function edit(ImportedEventModel $importedEvent)
 {
     global $DB;
     $stat = $DB->prepare("UPDATE imported_event SET title=:title, description=:description, " . "start_at=:start_at, end_at=:end_at, timezone=:timezone,  is_deleted='1', url = :url, " . "ticket_url = :ticket_url, reoccur=:reoccur WHERE id=:id");
     $stat->execute(array('id' => $importedEvent->getId(), 'title' => substr($importedEvent->getTitle(), 0, VARCHAR_COLUMN_LENGTH_USED), 'description' => $importedEvent->getDescription(), 'start_at' => $importedEvent->getStartAtInUTC()->format("Y-m-d H:i:s"), 'end_at' => $importedEvent->getEndAtInUTC()->format("Y-m-d H:i:s"), 'timezone' => $importedEvent->getTimezone(), 'url' => $importedEvent->getUrl(), 'ticket_url' => $importedEvent->getTicketUrl(), 'reoccur' => $importedEvent->getReoccur() ? json_encode($importedEvent->getReoccur()) : null));
 }