_screen = $screen; $this->_sortable = $sortable; if ( !empty( $columns ) ) { $this->_columns = $columns; add_filter( 'manage_' . $screen->id . '_columns', array( &$this, 'get_columns' ), 0 ); } } function get_column_info() { $columns = get_column_headers( $this->_screen ); $hidden = get_hidden_columns( $this->_screen ); $sortable = $this->_sortable; $column_slugs = array_keys( $columns ); $primary_column = $column_slugs[1]; return array( $columns, $hidden, $sortable, $primary_column ); } function get_columns() { return $this->_columns; } }