/**
  * @param IEvent $event
  * @return array
  */
 public static function convertEventToArray(IEvent $event)
 {
     $res = array();
     $main_info = $event->getMainInfo();
     $res['title'] = $main_info->getTitle();
     $res['url'] = $main_info->getUrl();
     $res['logo_url'] = $event->getLogoUrl();
     $res['label'] = $main_info->getLabel();
     $res['category'] = $main_info->getCategory();
     $res['location'] = $event->getLocation();
     $res['continent'] = $event->getContinent();
     $duration = $event->getDuration();
     $res['start_date'] = $duration->getStartDate()->format('Y-m-d');
     $res['end_date'] = $duration->getEndDate()->format('Y-m-d');
     return $res;
 }