PHP 클래스 WP_MS_Networks_List_Table

부터: 1.3
상속: extends WP_List_Table
파일 보기 프로젝트 열기: stuttter/wp-multi-network 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Main constructor
ajax_user_can ( ) : boolean Return capability used to determine if user can manage networks during an ajax request
column_admins ( WP_Network $network ) Output network admins
column_blogs ( WP_Network $network ) Output network sites
column_cb ( WP_Network $network ) Handles the checkbox column output.
column_default ( WP_Network $network, string $column_name ) Default column
column_domain ( WP_Network $network ) Output network domain
column_id ( array $network ) Handles the ID column output.
column_path ( WP_Network $network ) Output network path
column_title ( array $network ) Handles the network name column output.
display_rows ( ) Display table rows
get_bulk_actions ( ) : array Return array of bulk actions
get_columns ( ) : array Return array of columns
get_sortable_columns ( ) : array Return array of columns that are sortable
no_items ( ) Output message when no networks are found
pagination ( type $which ) Output pagination
prepare_items ( ) Prepare items for querying

보호된 메소드들

메소드 설명
get_default_primary_column_name ( ) : string Gets the name of the default primary column.
get_table_classes ( ) : type Return all classes for list-table
handle_row_actions ( WP_Network $network, string $column_name, string $primary ) : string Generates and displays row action links.

비공개 메소드들

메소드 설명
can_delete ( WP_Network $network ) : boolean Can the current user delete this network?

메소드 상세

__construct() 공개 메소드

Main constructor
public __construct ( )

ajax_user_can() 공개 메소드

Return capability used to determine if user can manage networks during an ajax request
public ajax_user_can ( ) : boolean
리턴 boolean

column_admins() 공개 메소드

Output network admins
부터: 2.0.0
public column_admins ( WP_Network $network )
$network WP_Network

column_blogs() 공개 메소드

Output network sites
부터: 2.0.0
public column_blogs ( WP_Network $network )
$network WP_Network

column_cb() 공개 메소드

Handles the checkbox column output.
부터: 2.0.0
public column_cb ( WP_Network $network )
$network WP_Network

column_default() 공개 메소드

Default column
부터: 2.0.0
public column_default ( WP_Network $network, string $column_name )
$network WP_Network
$column_name string

column_domain() 공개 메소드

Output network domain
부터: 2.0.0
public column_domain ( WP_Network $network )
$network WP_Network

column_id() 공개 메소드

Handles the ID column output.
public column_id ( array $network )
$network array Current network.

column_path() 공개 메소드

Output network path
부터: 2.0.0
public column_path ( WP_Network $network )
$network WP_Network

column_title() 공개 메소드

Handles the network name column output.
부터: 2.0.0
public column_title ( array $network )
$network array Current network.

display_rows() 공개 메소드

Display table rows
부터: 2.0.0
public display_rows ( )

get_bulk_actions() 공개 메소드

Return array of bulk actions
public get_bulk_actions ( ) : array
리턴 array

get_columns() 공개 메소드

Return array of columns
public get_columns ( ) : array
리턴 array

get_default_primary_column_name() 보호된 메소드

Gets the name of the default primary column.
protected get_default_primary_column_name ( ) : string
리턴 string Name of the default primary column, in this case, 'title'.

get_sortable_columns() 공개 메소드

Return array of columns that are sortable
public get_sortable_columns ( ) : array
리턴 array

get_table_classes() 보호된 메소드

Return all classes for list-table
protected get_table_classes ( ) : type
리턴 type

handle_row_actions() 보호된 메소드

Generates and displays row action links.
부터: 2.0.0
protected handle_row_actions ( WP_Network $network, string $column_name, string $primary ) : string
$network WP_Network Site being acted upon.
$column_name string Current column name.
$primary string Primary column name.
리턴 string Row actions output.

no_items() 공개 메소드

Output message when no networks are found
public no_items ( )

pagination() 공개 메소드

Output pagination
public pagination ( type $which )
$which type

prepare_items() 공개 메소드

Prepare items for querying
public prepare_items ( )