PHP Class Give_Export, Give

Since: 1.0
ファイルを表示 Open project: wordimpress/give

Public Properties

Property Type Description
$export_type string Our export type. Used for export-type specific filters/actions

Public Methods

Method Description
can_export ( ) : boolean Can we export?
csv_cols ( ) : array Set the CSV columns
csv_cols_out ( ) : void Output the CSV columns
csv_rows_out ( ) : void Output the CSV rows
export ( ) : void Perform the export
get_csv_cols ( ) : array Retrieve the CSV columns
get_data ( ) : array Get the data being exported
headers ( ) : void Set the export headers

Method Details

can_export() public method

Can we export?
Since: 1.0
public can_export ( ) : boolean
return boolean Whether we can export or not

csv_cols() public method

Set the CSV columns
Since: 1.0
public csv_cols ( ) : array
return array $cols All the columns

csv_cols_out() public method

Output the CSV columns
Since: 1.0
public csv_cols_out ( ) : void
return void

csv_rows_out() public method

Output the CSV rows
Since: 1.0
public csv_rows_out ( ) : void
return void

export() public method

Perform the export
Since: 1.0
public export ( ) : void
return void

get_csv_cols() public method

Retrieve the CSV columns
Since: 1.0
public get_csv_cols ( ) : array
return array $cols Array of the columns

get_data() public method

Get the data being exported
Since: 1.0
public get_data ( ) : array
return array $data Data for Export

headers() public method

Set the export headers
Since: 1.0
public headers ( ) : void
return void

Property Details

$export_type public_oe property

Our export type. Used for export-type specific filters/actions
Since: 1.0
public string $export_type
return string