/**
  *		@ singleton method used to instantiate class object
  *		@ access public
  *		@ return class instance
  */
 public static function instance()
 {
     // check if class object is instantiated
     if (self::$_instance === NULL or !is_object(self::$_instance) or !self::$_instance instanceof EE_Import) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 protected function _import_categories()
 {
     require_once EE_CLASSES . 'EE_Import.class.php';
     EE_Import::instance()->import();
 }
 public function save_csv_to_db($csv_data_array, $model_name = FALSE)
 {
     EE_Error::doing_it_wrong('save_csv_to_db', __('Function moved to EE_Import and renamed to save_csv_data_array_to_db', 'event_espresso'), '4.6.7');
     return EE_Import::instance()->save_csv_data_array_to_db($csv_data_array, $model_name);
 }
 /**
  * _import_events
  * This handles displaying the screen and running imports for importing events.
  *
  * @return string html
  */
 protected function _import_events()
 {
     require_once EE_CLASSES . 'EE_Import.class.php';
     $success = EE_Import::instance()->import();
     $this->_redirect_after_action($success, 'Import File', 'ran', array('action' => 'import_page'), true);
 }
 protected function _assertNoImportErrors()
 {
     $notices = EE_Error::get_notices(false, false, true);
     $this->assertEmpty(EE_Import::instance()->get_total_update_errors(), isset($notices['errors']) ? $notices['errors'] : '');
     $this->assertEmpty(EE_Import::instance()->get_total_insert_errors(), isset($notices['errors']) ? $notices['errors'] : '');
 }
 /**
  * Resets the importer
  * @return EE_Import
  */
 public static function reset()
 {
     self::$_instance = null;
     return self::instance();
 }