3 * Helper functions for displaying a list of items in an ajaxified HTML table.
6 * @subpackage List_Table
11 * Helper class to be used only by back compat functions
15 class _WP_List_Table_Compat extends WP_List_Table {
19 public function __construct( $screen, $columns = array() ) {
20 if ( is_string( $screen ) )
21 $screen = convert_to_screen( $screen );
23 $this->_screen = $screen;
25 if ( !empty( $columns ) ) {
26 $this->_columns = $columns;
27 add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' ), 0 );
36 protected function get_column_info() {
37 $columns = get_column_headers( $this->_screen );
38 $hidden = get_hidden_columns( $this->_screen );
40 $primary = $this->get_default_primary_column_name();
42 return array( $columns, $hidden, $sortable, $primary );
50 public function get_columns() {
51 return $this->_columns;