PHP Класс Give_Sales_Log_Table, Give

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

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

Свойство Тип Описание
$per_page integer Number of results to show per page

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

Метод Описание
__construct ( ) Get things started
bulk_actions ( $which = '' ) : void Outputs the log 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_filtered_give_form ( ) : integer Retrieves the ID of the give_form we're filtering logs by
get_filtered_user ( ) : mixed Retrieves the user we are filtering logs by, if any
get_logs ( ) : array Gets the log entries for the current view
get_meta_query ( ) : array Gets the meta query for the log query
get_paged ( ) : integer Retrieve the current page number
get_search ( ) : mixed Retrieves the search query string
give_forms_filter ( ) : void Sets up the forms filter
prepare_items ( ) : void Setup the final data for the table

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

Метод Описание
display_tablenav ( string $which ) Display Tablenav (extended)

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

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

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

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

Outputs the log views
С версии: 1.0
public bulk_actions ( $which = '' ) : void
Результат void

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

This function renders most of the columns in the list table.
С версии: 1.0
public column_default ( array $item, string $column_name ) : string
$item array Contains all the data of the discount code
$column_name string The name of the column
Результат string Column Name

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

Display the table navigation above or below the table even when no items in the logs, so nav doesn't disappear
С версии: 1.4.1
protected display_tablenav ( string $which )
$which string

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

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

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

Retrieves the ID of the give_form we're filtering logs by
С версии: 1.0
public get_filtered_give_form ( ) : integer
Результат integer Download ID

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

Retrieves the user we are filtering logs by, if any
С версии: 1.0
public get_filtered_user ( ) : mixed
Результат mixed int If User ID, string If Email/Login

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

Gets the log entries for the current view
С версии: 1.0
public get_logs ( ) : array
Результат array $logs_data Array of all the Log entires

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

This is used to return log entries that match our search query, user query, or form query
С версии: 1.0
public get_meta_query ( ) : array
Результат array $meta_query

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

Retrieve the current page number
С версии: 1.0
public get_paged ( ) : integer
Результат integer Current page number

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

Sets up the forms filter
С версии: 1.0
public give_forms_filter ( ) : void
Результат void

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

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

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

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

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