PHP Class Give_API_Keys_Table, Give

Renders the API Keys table
Since: 1.1
Inheritance: extends WP_List_Table
Exibir arquivo Open project: wordimpress/give Class Usage Examples

Public Properties

Property Type Description
$per_page Number of items per page

Public Methods

Method Description
__construct ( ) Get things started
bulk_actions ( string $which = '' ) : void Display the key generation form
column_default ( array $item, string $column_name ) : string This function renders most of the columns in the list table.
column_key ( array $item ) : string Displays the public key rows
column_secret ( array $item ) : string Displays the secret key rows
column_token ( array $item ) : string Displays the token rows
column_user ( $item ) : void Renders the column for the user field
get_columns ( ) : array Retrieve the table columns
get_paged ( ) : integer Retrieve the current page number
prepare_items ( ) : void Setup the final data for the table
query ( ) : array Performs the key query
total_items ( ) : integer Retrieve count of total users with keys

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.1
public __construct ( )

bulk_actions() public method

Display the key generation form
Since: 1.1
public bulk_actions ( string $which = '' ) : void
$which string
return void

column_default() public method

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

column_key() public method

Displays the public key rows
Since: 1.1
public column_key ( array $item ) : string
$item array Contains all the data of the keys
return string Column Name

column_secret() public method

Displays the secret key rows
Since: 1.1
public column_secret ( array $item ) : string
$item array Contains all the data of the keys
return string Column Name

column_token() public method

Displays the token rows
Since: 1.1
public column_token ( array $item ) : string
$item array Contains all the data of the keys
return string Column Name

column_user() public method

Renders the column for the user field
Since: 1.1
public column_user ( $item ) : void
return void

display_tablenav() protected method

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

get_columns() public method

Retrieve the table columns
Since: 1.1
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.1
public get_paged ( ) : integer
return integer Current page number

prepare_items() public method

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

query() public method

Performs the key query
Since: 1.1
public query ( ) : array
return array

total_items() public method

Retrieve count of total users with keys
Since: 1.1
public total_items ( ) : integer
return integer

Property Details

$per_page public_oe property

Number of items per page
Since: 1.1
public $per_page