Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/popup-ma.../trunk/classes/Interfac.../CSV
File: Importer.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Interface for CSV Importer
[2] Fix | Delete
*
[3] Fix | Delete
* @package PUM
[4] Fix | Delete
* @copyright Copyright (c) 2023, Code Atlantic LLC
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Promise for structuring CSV importers.
[13] Fix | Delete
*
[14] Fix | Delete
* @since 1.7.0
[15] Fix | Delete
*
[16] Fix | Delete
* @see PUM_Interface_Batch_Importer
[17] Fix | Delete
*/
[18] Fix | Delete
interface PUM_Interface_CSV_Importer extends PUM_Interface_Batch_Importer {
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Maps CSV columns to their corresponding import fields.
[22] Fix | Delete
*
[23] Fix | Delete
* @param array $import_fields Import fields to map.
[24] Fix | Delete
*/
[25] Fix | Delete
public function map_fields( $import_fields = [] );
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Retrieves the CSV columns.
[29] Fix | Delete
*
[30] Fix | Delete
* @return array The columns in the CSV.
[31] Fix | Delete
*/
[32] Fix | Delete
public function get_columns();
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Maps a single CSV row to the data passed in via init().
[36] Fix | Delete
*
[37] Fix | Delete
* @param array $csv_row CSV row data.
[38] Fix | Delete
*
[39] Fix | Delete
* @return array CSV row data mapped to form-defined arguments.
[40] Fix | Delete
*/
[41] Fix | Delete
public function map_row( $csv_row );
[42] Fix | Delete
[43] Fix | Delete
/**
[44] Fix | Delete
* Retrieves the first row of the CSV.
[45] Fix | Delete
*
[46] Fix | Delete
* This is used for showing an example of what the import will look like.
[47] Fix | Delete
*
[48] Fix | Delete
* @return array The first row after the header of the CSV.
[49] Fix | Delete
*/
[50] Fix | Delete
public function get_first_row();
[51] Fix | Delete
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function