Property | Type | Description | |
---|---|---|---|
$delimiter | string | The current delimiter. | |
$file_url | string | The current file url. | |
$id | integer | The current file id. | |
$import_page | string | The current import page. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
bump_request_timeout ( integer $val ) : integer | Added to http_request_timeout filter to force timeout at 60 seconds during import. | |
dispatch ( ) | Registered callback function for the WordPress Importer. | |
footer ( ) | Output footer html. | |
format_data_from_csv ( mixed $data, string $enc ) : string | UTF-8 encode the data if $enc value isn't UTF-8. | |
greet ( ) | Output information about the uploading process. | |
handle_upload ( ) : boolean | Handles the CSV upload and initial parsing of the file to prepare for. | |
header ( ) | Output header html. | |
import ( mixed $file ) | Import the file if it exists and is valid. | |
import_end ( ) | Performs post-import cleanup of files and the cache. |
Method | Description | |
---|---|---|
import_error ( string $message = '' ) | Show import error and quit. | |
import_start ( ) | Import is starting. |
public bump_request_timeout ( integer $val ) : integer | ||
$val | integer | |
return | integer | 60 |
public dispatch ( ) |
public handle_upload ( ) : boolean | ||
return | boolean | False if error uploading or invalid file, true otherwise |
public import_end ( ) |