PHP Класс Give_Payment_History_Table, Give

Renders the Payment History table on the Payment History page
С версии: 1.0
Наследование: extends WP_List_Table
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$abandoned_count integer Total number of abandoned payments
$base_url string URL of this page
$cancelled_count integer Total number of cancelled payments
$complete_count integer Total number of complete payments
$failed_count integer Total number of failed payments
$pending_count integer Total number of pending payments
$per_page string Number of results to show per page
$refunded_count integer Total number of refunded payments
$revoked_count integer Total number of revoked payments
$total_count integer Total number of payments

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

Метод Описание
__construct ( ) Get things started.
advanced_filters ( )
column_cb ( Give_Payment $payment ) : string Get checkbox html.
column_default ( Give_Payment $payment, string $column_name ) : string This function renders most of the columns in the list table.
get_bulk_actions ( ) : array Retrieve the bulk actions
get_columns ( ) : array Retrieve the table columns
get_donor ( Give_Payment $payment ) : string Get donor html.
get_donor_email ( Give_Payment $payment ) : string Get donor email html.
get_payment_counts ( ) : void Retrieve the payment counts
get_payment_id ( Give_Payment $payment ) : string Get payment ID html.
get_payment_status ( Give_Payment $payment ) : string Get payment status html.
get_row_actions ( $payment ) : mixed | void Get Row Actions
get_sortable_columns ( ) : array Retrieve the table's sortable columns
get_views ( ) : array Retrieve the view types
payments_data ( ) : object Retrieve all the data for all the payments.
prepare_items ( ) : void Setup the final data for the table
process_bulk_action ( ) : void Process the bulk actions
search_box ( string $text, string $input_id ) : void Show the search field

Защищенные методы

Метод Описание
get_primary_column_name ( ) : string Gets the name of the primary column.

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

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

Get things started.
См. также: WP_List_Table::__construct()
С версии: 1.0
public __construct ( )

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

public advanced_filters ( )

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

Get checkbox html.
С версии: 1.0
public column_cb ( Give_Payment $payment ) : string
$payment Give_Payment Contains all the data for the checkbox column
Результат string Displays a checkbox

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

This function renders most of the columns in the list table.
С версии: 1.0
public column_default ( Give_Payment $payment, string $column_name ) : string
$payment Give_Payment Payment ID.
$column_name string The name of the column
Результат string Column Name

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

Retrieve the bulk actions
С версии: 1.0
public get_bulk_actions ( ) : array
Результат array $actions Array of the bulk actions

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

Retrieve the table columns
С версии: 1.0
public get_columns ( ) : array
Результат array $columns Array of all the list table columns

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

Get donor html.
С версии: 1.0
public get_donor ( Give_Payment $payment ) : string
$payment Give_Payment Contains all the data of the payment
Результат string Data shown in the User column

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

Get donor email html.
С версии: 1.0
public get_donor_email ( Give_Payment $payment ) : string
$payment Give_Payment Contains all the data of the payment
Результат string Data shown in the Email column

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

Retrieve the payment counts
С версии: 1.0
public get_payment_counts ( ) : void
Результат void

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

Get payment ID html.
С версии: 1.0
public get_payment_id ( Give_Payment $payment ) : string
$payment Give_Payment Contains all the data for the checkbox column
Результат string Displays a checkbox

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

Get payment status html.
С версии: 1.0
public get_payment_status ( Give_Payment $payment ) : string
$payment Give_Payment Contains all the data of the payment
Результат string Data shown in the Email column

get_primary_column_name() защищенный Метод

Gets the name of the primary column.
С версии: 1.5
protected get_primary_column_name ( ) : string
Результат string Name of the primary column.

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

Get Row Actions
С версии: 1.6
public get_row_actions ( $payment ) : mixed | void
Результат mixed | void

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

Retrieve the table's sortable columns
С версии: 1.0
public get_sortable_columns ( ) : array
Результат array Array of all the sortable columns

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

Retrieve the view types
С версии: 1.0
public get_views ( ) : array
Результат array $views All the views available

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

Retrieve all the data for all the payments.
С версии: 1.0
public payments_data ( ) : object
Результат object all the data for the payments

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

Setup the final data for the table
С версии: 1.0
public prepare_items ( ) : void
Результат void

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

Process the bulk actions
С версии: 1.0
public process_bulk_action ( ) : void
Результат void

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

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

Total number of abandoned payments
С версии: 1.6
public int $abandoned_count
Результат integer

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

URL of this page
С версии: 1.0.1
public string $base_url
Результат string

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

Total number of cancelled payments
С версии: 1.4
public int $cancelled_count
Результат integer

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

Total number of complete payments
С версии: 1.0
public int $complete_count
Результат integer

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

Total number of failed payments
С версии: 1.0
public int $failed_count
Результат integer

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

Total number of pending payments
С версии: 1.0
public int $pending_count
Результат integer

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

Number of results to show per page
С версии: 1.0
public string $per_page
Результат string

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

Total number of refunded payments
С версии: 1.0
public int $refunded_count
Результат integer

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

Total number of revoked payments
С версии: 1.0
public int $revoked_count
Результат integer

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

Total number of payments
С версии: 1.0
public int $total_count
Результат integer