PHP Class Give_Donor_Reports_Table, Give

Renders the Donor Reports table
Since: 1.0
Inheritance: extends WP_List_Table
ファイルを表示 Open project: wordimpress/give Class Usage Examples

Public Properties

Property Type Description
$count integer Number of donors found
$per_page integer Number of items per page
$total integer Total donors

Public Methods

Method Description
__construct ( ) Get things started
bulk_actions ( $which = '' ) : void Outputs the reporting views
column_default ( array $item, string $column_name ) : string This function renders most of the columns in the list table.
get_columns ( ) : array Retrieve the table columns
get_paged ( ) : integer Retrieve the current page number
get_search ( ) : mixed Retrieves the search query string
get_sortable_columns ( ) : array Get the sortable columns
give_search_box ( string $text, string $input_id ) : void Show the search field
prepare_items ( ) : void Setup the final data for the table
reports_data ( ) : array Build all the reports data
search_box ( string $text, string $input_id ) : false Remove default search field in favor for repositioned location

Protected Methods

Method Description
display_tablenav ( string $which ) Generate the table navigation above or below the table

Method Details

__construct() public method

Get things started
See also: WP_List_Table::__construct()
Since: 1.0
public __construct ( )

bulk_actions() public method

Outputs the reporting views
Since: 1.0
public bulk_actions ( $which = '' ) : void
return void

column_default() public method

This function renders most of the columns in the list table.
Since: 1.0
public column_default ( array $item, string $column_name ) : string
$item array Contains all the data of the donors
$column_name string The name of the column
return string Column Name

display_tablenav() protected method

Generate the table navigation above or below the table
Since: 1.0
protected display_tablenav ( string $which )
$which string

get_columns() public method

Retrieve the table columns
Since: 1.0
public get_columns ( ) : array
return array $columns Array of all the list table columns

get_paged() public method

Retrieve the current page number
Since: 1.0
public get_paged ( ) : integer
return integer Current page number

get_sortable_columns() public method

Get the sortable columns
Since: 1.0
public get_sortable_columns ( ) : array
return array Array of all the sortable columns

prepare_items() public method

Setup the final data for the table
Since: 1.0
public prepare_items ( ) : void
return void

reports_data() public method

Build all the reports data
Since: 1.0
public reports_data ( ) : array
return array $reports_data All the data for donor reports

Property Details

$count public_oe property

Number of donors found
Since: 1.0
public int $count
return integer

$per_page public_oe property

Number of items per page
Since: 1.0
public int $per_page
return integer

$total public_oe property

Total donors
Since: 1.0
public int $total
return integer