PHP 클래스 WPDKListTableModel

부터: 1.4.13
저자: =undo= ([email protected])
상속: implements IWPDKListTableModel
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$action_result boolean Used for check the action and bulk action results.

공개 메소드들

메소드 설명
__construct ( ) : WPDKListTableModel Create an instance of WPDKListTableModel class
action_result ( boolean | WP_Error $result ) Set the action result.
current_action ( $nonce = '' ) : string | boolean Get the current action selected from the bulk actions dropdown.
get_actions_with_status ( array $item, array $status ) : array Return tha array with the row actions for the current status.
get_bulk_actions_with_status ( string $status ) : array Return the array with the buk action for the combo menu for a status of view
get_columns ( ) : array Return a key value pairs array with the list of columns
get_count_statuses ( ) : array Return a key value pairs array with status key => count.
get_icon_statuses ( ) : array Return a key value pairs array with statuses icons glyph
get_sortable_columns ( ) : array Return the sortable columns
get_statuses ( ) : array Return a key value pairs array with statuses supported
process_bulk_action ( ) Process actions. Override when you need to process actions before wp is loaded.
select ( ) Return the items array. This is an array of key value pairs array

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKListTableModel class
public __construct ( ) : WPDKListTableModel
리턴 WPDKListTableModel

action_result() 공개 메소드

Set the action result.
부터: 1.6.0
public action_result ( boolean | WP_Error $result )
$result boolean | WP_Error A result from an "action".

current_action() 공개 메소드

Get the current action selected from the bulk actions dropdown.
public current_action ( $nonce = '' ) : string | boolean
리턴 string | boolean The action name or False if no action was selected

get_actions_with_status() 공개 메소드

Return tha array with the row actions for the current status.
public get_actions_with_status ( array $item, array $status ) : array
$item array The item
$status array Describe one or more status of single item
리턴 array

get_bulk_actions_with_status() 공개 메소드

Return the array with the buk action for the combo menu for a status of view
public get_bulk_actions_with_status ( string $status ) : array
$status string Current status. Usually this is the status in the URI, when user select 'All', 'Publish', etc...
리턴 array

get_columns() 공개 메소드

Return a key value pairs array with the list of columns
public get_columns ( ) : array
리턴 array

get_count_statuses() 공개 메소드

Return a key value pairs array with status key => count.
부터: 1.5.16
public get_count_statuses ( ) : array
리턴 array

get_icon_statuses() 공개 메소드

Return a key value pairs array with statuses icons glyph
public get_icon_statuses ( ) : array
리턴 array

get_sortable_columns() 공개 메소드

Return the sortable columns
public get_sortable_columns ( ) : array
리턴 array

get_statuses() 공개 메소드

Return a key value pairs array with statuses supported
public get_statuses ( ) : array
리턴 array

process_bulk_action() 공개 메소드

Process actions. Override when you need to process actions before wp is loaded.
부터: 1.4.21
public process_bulk_action ( )

select() 공개 메소드

Return the items array. This is an array of key value pairs array
public select ( )

프로퍼티 상세

$action_result 공개적으로 프로퍼티

Used for check the action and bulk action results.
public bool $action_result
리턴 boolean