PHP Класс Give_API_Keys_Table, Give

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

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

Свойство Тип Описание
$per_page Number of items per page

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

Метод Описание
__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

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

Метод Описание
display_tablenav ( string $which ) Generate the table navigation above or below the table

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

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

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

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

Display the key generation form
С версии: 1.1
public bulk_actions ( string $which = '' ) : void
$which string
Результат void

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

This function renders most of the columns in the list table.
С версии: 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
Результат string Column Name

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

Displays the public key rows
С версии: 1.1
public column_key ( array $item ) : string
$item array Contains all the data of the keys
Результат string Column Name

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

Displays the secret key rows
С версии: 1.1
public column_secret ( array $item ) : string
$item array Contains all the data of the keys
Результат string Column Name

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

Displays the token rows
С версии: 1.1
public column_token ( array $item ) : string
$item array Contains all the data of the keys
Результат string Column Name

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

Renders the column for the user field
С версии: 1.1
public column_user ( $item ) : void
Результат void

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

Generate the table navigation above or below the table
С версии: 3.1.0
protected display_tablenav ( string $which )
$which string

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

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

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

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

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

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

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

Performs the key query
С версии: 1.1
public query ( ) : array
Результат array

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

Retrieve count of total users with keys
С версии: 1.1
public total_items ( ) : integer
Результат integer

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

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

Number of items per page
С версии: 1.1
public $per_page