PHP 클래스 Pressbooks\Admin\Catalog_List_Table

또한 보기: http://codex.wordpress.org/Class_Reference/WP_List_Table
상속: extends WP_List_Table
파일 보기 프로젝트 열기: pressbooks/pressbooks

공개 메소드들

메소드 설명
__construct ( ) Constructor, must call parent
_js_vars ( )
addMenu ( ) WP Hook, Instantiate UI
addSearchParamsToUrl ( string $url ) : string Rebuild a URL with known search parameters
ajax_response ( )
column_cb ( array $item ) : string REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column is given special treatment when columns are processed. It ALWAYS needs to have it's own method.
column_cover ( array $item ) : string
column_default ( object $item, string $column_name ) : string This method is called when the parent class can't find a method for a given column. For example, if the class needs to process a column named 'title', it would first see if a method named $this->column_title() exists. If it doesn't this one will be used.
column_status ( array $item ) : string
column_title ( array $item ) : string
get_bulk_actions ( ) : array
get_columns ( ) : array This method dictates the table's columns and titles.
get_sortable_columns ( ) : array This method merely defines which columns should be sortable and makes them clickable - it does not handle the actual sorting.
prepare_items ( ) REQUIRED! This is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this->items and $this->set_pagination_args()
print_column_headers ( boolean $with_id = true ) Form is POST not GET. Override parent method to compensate.
viewCatalogUrl ( ) : string Generate catalog URL. Dies on problem.

보호된 메소드들

메소드 설명
atLeastOneKeyword ( $keyword, array $data ) : boolean
getHiddenColumns ( ) : array TODO: This isn't well documented, not sure i'm doing it right.
getItemsData ( ) : array
renderTagColumn ( object $item, string $column_name ) : string
searchFilter ( array $data ) : array

메소드 상세

__construct() 공개 메소드

Constructor, must call parent
public __construct ( )

_js_vars() 공개 메소드

public _js_vars ( )

addMenu() 정적인 공개 메소드

WP Hook, Instantiate UI
static public addMenu ( )

addSearchParamsToUrl() 정적인 공개 메소드

Rebuild a URL with known search parameters
static public addSearchParamsToUrl ( string $url ) : string
$url string
리턴 string

ajax_response() 공개 메소드

public ajax_response ( )

atLeastOneKeyword() 보호된 메소드

protected atLeastOneKeyword ( $keyword, array $data ) : boolean
$keyword
$data array
리턴 boolean

column_cb() 공개 메소드

REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column is given special treatment when columns are processed. It ALWAYS needs to have it's own method.
public column_cb ( array $item ) : string
$item array A singular item (one full row's worth of data)
리턴 string Text to be placed inside the column

column_cover() 공개 메소드

public column_cover ( array $item ) : string
$item array A singular item (one full row's worth of data)
리턴 string Text to be placed inside the column

column_default() 공개 메소드

This method is called when the parent class can't find a method for a given column. For example, if the class needs to process a column named 'title', it would first see if a method named $this->column_title() exists. If it doesn't this one will be used.
또한 보기: WP_List_Table::single_row_columns()
public column_default ( object $item, string $column_name ) : string
$item object A singular item (one full row's worth of data)
$column_name string The name/slug of the column to be processed
리턴 string Text or HTML to be placed inside the column

column_status() 공개 메소드

public column_status ( array $item ) : string
$item array A singular item (one full row's worth of data)
리턴 string Text to be placed inside the column

column_title() 공개 메소드

public column_title ( array $item ) : string
$item array A singular item (one full row's worth of data)
리턴 string Text to be placed inside the column

getHiddenColumns() 보호된 메소드

..
protected getHiddenColumns ( ) : array
리턴 array

getItemsData() 보호된 메소드

protected getItemsData ( ) : array
리턴 array

get_bulk_actions() 공개 메소드

public get_bulk_actions ( ) : array
리턴 array An associative array containing all the bulk actions: 'slugs'=>'Visible Titles'

get_columns() 공개 메소드

This method dictates the table's columns and titles.
public get_columns ( ) : array
리턴 array An associative array containing column information: 'slugs'=>'Visible Titles'

get_sortable_columns() 공개 메소드

This method merely defines which columns should be sortable and makes them clickable - it does not handle the actual sorting.
public get_sortable_columns ( ) : array
리턴 array An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool)

prepare_items() 공개 메소드

REQUIRED! This is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this->items and $this->set_pagination_args()
public prepare_items ( )

print_column_headers() 공개 메소드

Form is POST not GET. Override parent method to compensate.
public print_column_headers ( boolean $with_id = true )
$with_id boolean

renderTagColumn() 보호된 메소드

protected renderTagColumn ( object $item, string $column_name ) : string
$item object A singular item (one full row's worth of data)
$column_name string The name/slug of the column to be processed
리턴 string Text to be placed inside the column

searchFilter() 보호된 메소드

protected searchFilter ( array $data ) : array
$data array
리턴 array

viewCatalogUrl() 정적인 공개 메소드

Generate catalog URL. Dies on problem.
static public viewCatalogUrl ( ) : string
리턴 string