PHP Class Give_API_Keys_Table, Give

Renders the API Keys table
Since: 1.1
Inheritance: extends WP_List_Table
Afficher le fichier Open project: wordimpress/give Class Usage Examples

Méthodes publiques

Свойство Type Description
$per_page Number of items per page

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
display_tablenav ( string $which ) Generate the table navigation above or below the table

Method Details

__construct() public méthode

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

bulk_actions() public méthode

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

column_default() public méthode

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
Résultat string Column Name

column_key() public méthode

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

column_secret() public méthode

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

column_token() public méthode

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

column_user() public méthode

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

display_tablenav() protected méthode

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

get_columns() public méthode

Retrieve the table columns
Since: 1.1
public get_columns ( ) : array
Résultat array $columns Array of all the list table columns

get_paged() public méthode

Retrieve the current page number
Since: 1.1
public get_paged ( ) : integer
Résultat integer Current page number

prepare_items() public méthode

Setup the final data for the table
Since: 1.1
public prepare_items ( ) : void
Résultat void

query() public méthode

Performs the key query
Since: 1.1
public query ( ) : array
Résultat array

total_items() public méthode

Retrieve count of total users with keys
Since: 1.1
public total_items ( ) : integer
Résultat integer

Property Details

$per_page public_oe property

Number of items per page
Since: 1.1
public $per_page