function __construct()
 {
     global $wpdb;
     parent::__construct();
     $this->db = $wpdb;
     $this->ecm = EPL_base::get_instance()->load_model('epl-common-model');
 }
 function __construct()
 {
     parent::__construct();
     $this->ecm = $this->epl->load_model('epl-common-model');
     $this->mode == 'overview';
     $this->set_mode();
     // $this->_start_cart_session();
 }
 function __construct()
 {
     parent::__construct();
     $this->ecm = $this->epl->load_model('epl-common-model');
     $this->mode = 'edit';
     $this->overview_trigger = null;
     //$this->_is_cart_expired();
     $this->_start_cart_session();
 }
 function __construct()
 {
     parent::__construct();
     //resetting the var just in case there is a widget on the left
     global $event_details;
     $event_details = array();
     $this->user_id = get_current_user_id();
     $this->ecm = $this->epl->load_model('epl-common-model');
     $this->ercm = $this->epl->load_model('epl-recurrence-model');
     $this->eutil = EPL_Util::get_instance();
     $this->mode = 'edit';
     $this->overview_trigger = null;
     self::$instance = $this;
 }
 function __construct()
 {
     parent::__construct();
     global $event_details, $epl_on_admin;
     $event_details = array();
     $this->on_admin = false;
     //$this->setup_date_source();
     $this->ecm = $this->epl->load_model('epl-common-model');
     $this->edm = $this->epl->load_model('epl-discount-model');
     $this->ercm = $this->epl->load_model('epl-recurrence-model');
     $this->edbm = $this->epl->load_model('epl-db-model');
     $this->mode = 'edit';
     $this->flow_mode = epl_get_element('epl_r_m', $_REQUEST, 'n');
     $this->overview_trigger = null;
     $this->ok_to_proceed = true;
     $this->waitlist_flow = false;
     $this->extra_response_vals = null;
     $this->discountable_step = false;
     //$this->_is_cart_expired();
     $this->event_id = intval(epl_get_element('event_id', $_REQUEST));
     $this->setup_current_data();
     self::$instance = $this;
 }