function emi_admin_notice()
{
    ob_start();
    $Emi = new EMI();
    $notice = $Emi->get_notice();
    ob_clean();
    if (!empty($notice)) {
        echo '<div class="error"><p>' . $Emi->get_notice() . '</p></div>';
    }
}
 function checkEventManager()
 {
     $events_manager_actived = plugin_active('events-manager/events-manager.php');
     (bool) $events_manager_actived;
     if ($events_manager_actived) {
         $notice = null;
     } else {
         $notice = __("Event Manager Importer : Event Manager is not enabled. Please enable it before our plugin.", "emi");
     }
     parent::set_notice($notice);
 }
 function __construct($datas, $location_id)
 {
     parent::__construct();
     $this->db_event_name = __("Untitled", "emi");
     $this->hydrate($datas);
     $this->format_date();
     $this->event_attributes = 'a:1:{s:25:"custom_style_field_select";s:0:"";}';
     $this->db_event_owner = $this->get_current_user_id();
     $this->start = strtotime($this->db_event_start_date . " " . $this->db_event_start_time);
     $this->end = strtotime($this->db_event_end_date . " " . $this->db_event_end_time);
     $this->db_location_id = $location_id;
 }
 function __construct($datas)
 {
     parent::__construct();
     $this->hydrate($datas);
 }
 function __construct($post_id)
 {
     parent::__construct();
     $this->set_post_att($post_id);
 }