LLMS_Table_Student_Courses::set_args()

Define the structure of arguments used to pass to the get_results method


Return Return

(array)


Top ↑

Source Source

File: includes/admin/reporting/tables/llms.table.student.courses.php

203
204
205
206
207
208
209
210
211
212
213
214
215
216
public function set_args() {
 
    $student = false;
    if ( ! empty( $this->student ) ) {
        $student = $this->student->get_id();
    } elseif ( ! empty( $_GET['student_id'] ) ) {
        $student = llms_filter_input( INPUT_GET, 'student_id', FILTER_SANITIZE_NUMBER_INT );
    }
 
    return array(
        'page'    => $this->get_current_page(),
        'student' => $student,
    );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.35.0 Sanitize $_GET data.
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.