LLMS_Table_Student_Course::set_args()
Define the structure of arguments used to pass to the get_results method
Return Return
(array)
Source Source
File: includes/admin/reporting/tables/llms.table.student.course.php
235 236 237 238 239 240 241 242 243 244 245 246 247 248 | public function set_args() { $student = false; if ( ! empty ( $this ->student ) ) { $student = $this ->student->get_id(); } elseif ( ! empty ( $_GET [ 'student_id' ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended $student = llms_filter_input( INPUT_GET, 'student_id' , FILTER_SANITIZE_NUMBER_INT ); } return array ( 'page' => $this ->get_current_page(), 'student' => $student , ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.35.0 | Get student ID more reliably. |
2.3.0 | Introduced. |