PHP 클래스 WordPress\ORM\Admin\ListTable

저자: Brandon Wamboldt ([email protected])
파일 보기 프로젝트 열기: brandonwamboldt/wp-orm

보호된 프로퍼티들

프로퍼티 타입 설명
$actions array
$args array
$items array
$pagination string
$pagination_args array
$screen object

공개 메소드들

메소드 설명
__construct ( array $args = [] ) Constructor. The child class should call this constructor from its own constructor
ajax_response ( ) Handle an incoming ajax request (called from admin-ajax.php).
ajax_user_can ( ) Checks the current user's permissions.
bulk_actions ( ) Display the bulk actions dropdown.
current_action ( ) : string | boolean Get the current action selected from the bulk actions dropdown.
display ( ) Display the table.
get_column_count ( ) : integer Return number of visible columns.
get_pagenum ( ) : integer Get the current page number
get_pagination_arg ( string $key ) : array Access the pagination args.
get_search_query ( $escaped = true ) Cause the real one doesn't work.
has_items ( ) : boolean Whether the table has items to display or not.
no_items ( ) Message to be displayed when there are no items.
prepare_items ( ) Prepares the list of items for displaying.
search_box ( string $text, string $input_id ) Display the search box.
views ( ) Display the list of views available on this table.

보호된 메소드들

part of the table. part of the table.
메소드 설명
comments_bubble ( integer $post_id, integer $pending_comments ) Display a comment count bubble
display_rows ( ) Generate the table rows.
display_rows_or_placeholder ( ) Generate the
display_tablenav ( $which ) Generate the table navigation above or below the table.
extra_tablenav ( $which ) Extra controls to be displayed between bulk actions and pagination.
get_bulk_actions ( ) : array Get an associative array ( option_name => option_title ) with the list of bulk actions available on this table.
get_column_info ( ) : array Get a list of all, hidden and sortable columns, with filter applied
get_columns ( ) : array Get a list of columns. The format is: 'internal-name' => 'Title'
get_items_per_page ( $option, $default = 20 ) : integer Get number of items to display on a single page
get_sortable_columns ( ) : array Get a list of sortable columns. The format is: 'internal-name' => 'orderby' or 'internal-name' => array( 'orderby', true )
get_table_classes ( ) : array Get a list of CSS classes for the tag
get_views ( ) : array Get an associative array ( id => link ) with the list of views available on this table.
js_vars ( ) Send required variables to JavaScript land.
months_dropdown ( $post_type ) Display a monthly dropdown for filtering items
pagination ( $which ) Display the pagination.
print_column_headers ( boolean $with_id = true ) Print column headers, accounting for hidden and sortable columns.
row_actions ( array $actions, boolean $always_visible = false ) : string Generate row actions div
set_pagination_args ( array $args ) An internal method that sets all the necessary pagination arguments.
single_row ( object $item ) Generates content for a single row of the table.
single_row_columns ( object $item ) Generates the columns for a single row of the table.
view_switcher ( $current_mode ) Display a view switcher

메소드 상세

__construct() 공개 메소드

Constructor. The child class should call this constructor from its own constructor
public __construct ( array $args = [] )
$args array

ajax_response() 공개 메소드

Handle an incoming ajax request (called from admin-ajax.php).
public ajax_response ( )

ajax_user_can() 추상적인 공개 메소드

Checks the current user's permissions.
abstract public ajax_user_can ( )

bulk_actions() 공개 메소드

Display the bulk actions dropdown.
public bulk_actions ( )

comments_bubble() 보호된 메소드

Display a comment count bubble
protected comments_bubble ( integer $post_id, integer $pending_comments )
$post_id integer
$pending_comments integer

current_action() 공개 메소드

Get the current action selected from the bulk actions dropdown.
public current_action ( ) : string | boolean
리턴 string | boolean

display() 공개 메소드

Display the table.
public display ( )

display_rows() 보호된 메소드

Generate the table rows.
protected display_rows ( )

display_rows_or_placeholder() 보호된 메소드

Generate the
protected display_rows_or_placeholder ( )

display_tablenav() 보호된 메소드

Generate the table navigation above or below the table.
protected display_tablenav ( $which )

extra_tablenav() 보호된 메소드

Extra controls to be displayed between bulk actions and pagination.
protected extra_tablenav ( $which )

get_bulk_actions() 보호된 메소드

Get an associative array ( option_name => option_title ) with the list of bulk actions available on this table.
protected get_bulk_actions ( ) : array
리턴 array

get_column_count() 공개 메소드

Return number of visible columns.
public get_column_count ( ) : integer
리턴 integer

get_column_info() 보호된 메소드

Get a list of all, hidden and sortable columns, with filter applied
protected get_column_info ( ) : array
리턴 array

get_columns() 추상적인 보호된 메소드

Get a list of columns. The format is: 'internal-name' => 'Title'
abstract protected get_columns ( ) : array
리턴 array

get_items_per_page() 보호된 메소드

Get number of items to display on a single page
protected get_items_per_page ( $option, $default = 20 ) : integer
리턴 integer

get_pagenum() 공개 메소드

Get the current page number
public get_pagenum ( ) : integer
리턴 integer

get_pagination_arg() 공개 메소드

Access the pagination args.
public get_pagination_arg ( string $key ) : array
$key string
리턴 array

get_search_query() 공개 메소드

Cause the real one doesn't work.
public get_search_query ( $escaped = true )

get_sortable_columns() 보호된 메소드

The second format will make the initial sorting order be descending.
protected get_sortable_columns ( ) : array
리턴 array

get_table_classes() 보호된 메소드

Get a list of CSS classes for the tag
protected get_table_classes ( ) : array
리턴 array

get_views() 보호된 메소드

Get an associative array ( id => link ) with the list of views available on this table.
protected get_views ( ) : array
리턴 array

has_items() 공개 메소드

Whether the table has items to display or not.
public has_items ( ) : boolean
리턴 boolean

js_vars() 보호된 메소드

Send required variables to JavaScript land.
protected js_vars ( )

months_dropdown() 보호된 메소드

Display a monthly dropdown for filtering items
protected months_dropdown ( $post_type )

no_items() 공개 메소드

Message to be displayed when there are no items.
public no_items ( )

pagination() 보호된 메소드

Display the pagination.
protected pagination ( $which )

prepare_items() 추상적인 공개 메소드

Prepares the list of items for displaying.
abstract public prepare_items ( )

print_column_headers() 보호된 메소드

Print column headers, accounting for hidden and sortable columns.
protected print_column_headers ( boolean $with_id = true )
$with_id boolean

row_actions() 보호된 메소드

Generate row actions div
protected row_actions ( array $actions, boolean $always_visible = false ) : string
$actions array
$always_visible boolean
리턴 string

set_pagination_args() 보호된 메소드

An internal method that sets all the necessary pagination arguments.
protected set_pagination_args ( array $args )
$args array

single_row() 보호된 메소드

Generates content for a single row of the table.
protected single_row ( object $item )
$item object The current item

single_row_columns() 보호된 메소드

Generates the columns for a single row of the table.
protected single_row_columns ( object $item )
$item object The current item

view_switcher() 보호된 메소드

Display a view switcher
protected view_switcher ( $current_mode )

views() 공개 메소드

Display the list of views available on this table.
public views ( )

프로퍼티 상세

$actions 보호되어 있는 프로퍼티

protected array $actions
리턴 array

$args 보호되어 있는 프로퍼티

protected array $args
리턴 array

$items 보호되어 있는 프로퍼티

protected array $items
리턴 array

$pagination 보호되어 있는 프로퍼티

protected string $pagination
리턴 string

$pagination_args 보호되어 있는 프로퍼티

protected array $pagination_args
리턴 array

$screen 보호되어 있는 프로퍼티

protected object $screen
리턴 object