Tribe__Events__Aggregator__Record__CSV::get_importer()
Source
File: src/Tribe/Aggregator/Record/CSV.php
public function get_importer() {
if ( ! $this->importer ) {
$content_type = $this->get_csv_content_type();
$file_path = $this->get_file_path();
$file_reader = new Tribe__Events__Importer__File_Reader( $file_path );
$this->importer = Tribe__Events__Importer__File_Importer::get_importer( $content_type, $file_reader );
$this->importer->set_map( get_option( 'tribe_events_import_column_mapping_' . $content_type, array() ) );
$this->importer->set_type( $content_type );
$this->importer->set_limit( absint( apply_filters( 'tribe_aggregator_batch_size', Tribe__Events__Aggregator__Record__Queue_Processor::$batch_size ) ) );
$this->importer->set_offset( 1 );
}
return $this->importer;
}