LLMS_Admin_Table
LLMS_Admin_Table abstract class
Description Description
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
Changelog Changelog
Version | Description |
---|---|
3.37.7 | Fix PHP 7.4 deprecation notice. |
3.34.0 | Added get_table_classes(). |
3.2.0 | Introduced. |
Methods Methods
- __construct — Constructor
- clean_args — Ensure that a valid array of data is passed to a query Used by AJAX methods to clean unnecessary parameters before passing the request data to the get_results function
- filter_get_data — Ensures that all data requested by $this->get_data if filterable before being output on screen / in the export file
- get_args — Retrieve the arguments defined in `set_args`
- get_columns — Retrieve the array of columns defined by set_columns
- get_columns_count — Get the total number of columns in the table Useful for creating full with tds via colspan
- get_current_page — Get the current page
- get_data — Retrieve data for a cell
- get_empty_message — Get $this->empty_msg string
- get_filter — Get the current filter
- get_filter_placeholder — Get the text for the default/placeholder for a filterable column
- get_filterby — Get the current field results are filtered by
- get_handler — Retrieve a modified classname that can be passed via AJAX for new queries
- get_max_pages — Retrieve the max number of pages for the table
- get_new_order — Gets the opposite of the current order Used to determine what order should be displayed when resorting
- get_order — Get the current sort order
- get_orderby — Get the current field results are ordered by
- get_per_page — Get the current number of results to display per page
- get_post_link — Get the HTML for a WP Post Link
- get_progress_bar_html — Get the HTML to output a progress bar within a td Improve ugly tables with a small visual flourish Useful when displaying a percentage within a table! Bonus if the table sorts by that percentage column
- get_results — Execute a query to retrieve results from the table
- get_search — Retrieves the current search query
- get_table_classes — Returns an array of CSS class names to use on this table.
- get_table_filters_html — Get HTML for the filters displayed in the head of the table
- get_table_html — Get the HTML for the entire table
- get_table_search_form_html — Get the HTML of the search form for a searchable table
- get_table_search_form_placeholder — Get the Text to be used as the placeholder in a searchable tables search input
- get_table_title_html — Get the HTML for the table's title
- get_tbody_data — Get $this->tbody_data array
- get_tbody_html — Get a tbody element for the table
- get_tfoot_html — Get a tfoot element for the table
- get_thead_html — Get a thead element for the table
- get_title — Get the title of the table
- get_tr_classes — Get a CSS class list (as a string) for each TR
- get_tr_html — Get the HTML for a single row in the body of the table
- get_user_link — Get the HTML for a WP User Link
- is_col_visible — Determine if a column is visible based on the current context
- is_last_page — Return protected is_last_page var
- register_hooks — Allow custom hooks to be registered for use within the class
- set — Setter
- set_args — Define the structure of arguments used to pass to the get_results method
- set_columns — Define the structure of the table
- set_empty_message — Empty message displayed when no results are found
- set_title — Stub used to set the title during table construction.