LLMS_Table_Students::get_results( array $args = array() )
Execute a query to retrieve results from the table
Parameters Parameters
- $args
-
(array) (Optional) Array of query args.
Default value: array()
Return Return
(void)
Source Source
File: includes/admin/reporting/tables/llms.table.students.php
public function get_results( $args = array() ) { // Current user can't access this report. if ( ! current_user_can( 'view_others_lifterlms_reports' ) && ! current_user_can( 'view_lifterlms_reports' ) ) { return; } $this->parse_args( $args ); $query_args = $this->get_query_args(); if ( current_user_can( 'view_others_lifterlms_reports' ) ) { $query = new LLMS_Student_Query( $query_args ); } elseif ( current_user_can( 'view_lifterlms_reports' ) ) { $instructor = llms_get_instructor(); if ( ! $instructor ) { return; } $query = $instructor->get_students( $query_args ); } $this->max_pages = $query->get_max_pages(); $this->is_last_page = $query->is_last_page(); $this->tbody_data = $query->get_students(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Don't access LLMS_Student_Query properties directly. |
3.28.0 | Unknown. |
3.2.0 | Introduced. |