PHP Класс WC_Tax_Rate_Importer

Автор: WooThemes
Наследование: extends WP_Importer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
import_error ( string $message = '' ) Show import error and quit.
import_start ( ) Import is starting.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

bump_request_timeout() публичный Метод

Added to http_request_timeout filter to force timeout at 60 seconds during import.
public bump_request_timeout ( integer $val ) : integer
$val integer
Результат integer 60

dispatch() публичный Метод

Manages the three separate stages of the CSV import process.
public dispatch ( )

format_data_from_csv() публичный Метод

UTF-8 encode the data if $enc value isn't UTF-8.
public format_data_from_csv ( mixed $data, string $enc ) : string
$data mixed
$enc string
Результат string

greet() публичный Метод

Output information about the uploading process.
public greet ( )

handle_upload() публичный Метод

displaying author import options.
public handle_upload ( ) : boolean
Результат boolean False if error uploading or invalid file, true otherwise

header() публичный Метод

Output header html.
public header ( )

import() публичный Метод

Import the file if it exists and is valid.
public import ( mixed $file )
$file mixed

import_end() публичный Метод

Performs post-import cleanup of files and the cache.
public import_end ( )

Описание свойств

$delimiter публичное свойство

The current delimiter.
public string $delimiter
Результат string

$file_url публичное свойство

The current file url.
public string $file_url
Результат string

$id публичное свойство

The current file id.
public int $id
Результат integer

$import_page публичное свойство

The current import page.
public string $import_page
Результат string