protected function _import_categories()
 {
     require_once EE_CLASSES . 'EE_Import.class.php';
     EE_Import::instance()->import();
 }
 /**
  * _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);
 }
 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);
 }
 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'] : '');
 }