| Server IP : 103.249.100.196 / Your IP : 216.73.216.194 Web Server : Apache System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64 User : dlsafepha ( 1078) PHP Version : 8.2.36 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home2/dlsafepha/www/wp-content/plugins/popup-maker/classes/Interface/CSV/ |
Upload File : |
<?php
/**
* Interface for CSV Importer
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Promise for structuring CSV importers.
*
* @since 1.7.0
*
* @see PUM_Interface_Batch_Importer
*/
interface PUM_Interface_CSV_Importer extends PUM_Interface_Batch_Importer {
/**
* Maps CSV columns to their corresponding import fields.
*
* @param array $import_fields Import fields to map.
*/
public function map_fields( $import_fields = [] );
/**
* Retrieves the CSV columns.
*
* @return array The columns in the CSV.
*/
public function get_columns();
/**
* Maps a single CSV row to the data passed in via init().
*
* @param array $csv_row CSV row data.
*
* @return array CSV row data mapped to form-defined arguments.
*/
public function map_row( $csv_row );
/**
* Retrieves the first row of the CSV.
*
* This is used for showing an example of what the import will look like.
*
* @return array The first row after the header of the CSV.
*/
public function get_first_row();
}