PHP 클래스 Give_Sales_Log_Table, Give

Renders the sales log list table
부터: 1.0
상속: extends WP_List_Table
파일 보기 프로젝트 열기: wordimpress/give 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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