PHP 클래스 Give_Batch_Export, Give

부터: 1.5
상속: extends Give_Export
파일 보기 프로젝트 열기: wordimpress/give

공개 프로퍼티들

프로퍼티 타입 설명
$end End date, Y-m-d H:i:s
$filename The name of the file the data is stored in
$filetype The file type, typically .csv
$form Form to export data for
$is_empty Is the export file empty
$is_writable Is the export file writable
$price_id Form Price ID to export data for
$start Start date, Y-m-d H:i:s
$status Status to export
$step The current step being processed

공개 메소드들

메소드 설명
__construct ( $_step = 1 ) Get things started
export ( ) : void Perform the export
get_percentage_complete ( ) : integer Return the calculated completion percentage
pre_fetch ( ) : void Allow for prefetching of data for the remainder of the exporter
print_csv_cols ( ) : string Output the CSV columns
print_csv_rows ( ) : string | false Print the CSV rows for the current step
process_step ( ) : boolean Process a step
set_properties ( $request ) * Set the properties specific to the export

보호된 메소드들

메소드 설명
get_file ( ) : string Retrieve the file data is written to
stash_step_data ( $data = '' ) : void Append data to export file

메소드 상세

__construct() 공개 메소드

Get things started
부터: 1.5
public __construct ( $_step = 1 )
$_step int The step to process

export() 공개 메소드

Perform the export
부터: 1.5
public export ( ) : void
리턴 void

get_file() 보호된 메소드

Retrieve the file data is written to
부터: 1.5
protected get_file ( ) : string
리턴 string

get_percentage_complete() 공개 메소드

Return the calculated completion percentage
부터: 1.5

pre_fetch() 공개 메소드

Allow for prefetching of data for the remainder of the exporter
부터: 1.5
public pre_fetch ( ) : void
리턴 void

print_csv_cols() 공개 메소드

Output the CSV columns
부터: 1.5
public print_csv_cols ( ) : string
리턴 string

print_csv_rows() 공개 메소드

Print the CSV rows for the current step
부터: 1.5
public print_csv_rows ( ) : string | false
리턴 string | false

process_step() 공개 메소드

Process a step
부터: 1.5
public process_step ( ) : boolean
리턴 boolean

set_properties() 공개 메소드

* Set the properties specific to the export
부터: 1.5
public set_properties ( $request )
$request The Form Data passed into the batch processing

stash_step_data() 보호된 메소드

Append data to export file
부터: 1.5
protected stash_step_data ( $data = '' ) : void
$data string The data to add to the file
리턴 void

프로퍼티 상세

$end 공개적으로 프로퍼티

End date, Y-m-d H:i:s
부터: 1.5
public $end

$filename 공개적으로 프로퍼티

The name of the file the data is stored in
부터: 1.5
public $filename

$filetype 공개적으로 프로퍼티

The file type, typically .csv
부터: 1.5
public $filetype

$form 공개적으로 프로퍼티

Form to export data for
부터: 1.5
public $form

$is_empty 공개적으로 프로퍼티

Is the export file empty
부터: 1.5
public $is_empty

$is_writable 공개적으로 프로퍼티

Is the export file writable
부터: 1.5
public $is_writable

$price_id 공개적으로 프로퍼티

Form Price ID to export data for
부터: 1.5
public $price_id

$start 공개적으로 프로퍼티

Start date, Y-m-d H:i:s
부터: 1.5
public $start

$status 공개적으로 프로퍼티

Status to export
부터: 1.5
public $status

$step 공개적으로 프로퍼티

The current step being processed
부터: 1.5
public $step