LLMS_Table_Course_Students::set_columns()

Define the structure of the table


Return Return

(array)


Top ↑

Source Source

File: includes/admin/reporting/tables/llms.table.course.students.php

403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
public function set_columns() {
    $cols = array(
        'id'          => array(
            'exportable' => true,
            'sortable'   => true,
            'title'      => __( 'ID', 'lifterlms' ),
        ),
        'name'        => array(
            'sortable' => true,
            'title'    => __( 'Name', 'lifterlms' ),
        ),
        'name_last'   => array(
            'exportable'  => true,
            'export_only' => true,
            'title'       => __( 'Last Name', 'lifterlms' ),
        ),
        'name_first'  => array(
            'exportable'  => true,
            'export_only' => true,
            'title'       => __( 'First Name', 'lifterlms' ),
        ),
        'email'       => array(
            'exportable'  => true,
            'export_only' => true,
            'title'       => __( 'Email', 'lifterlms' ),
        ),
        'status'      => array(
            'exportable' => true,
            'filterable' => llms_get_enrollment_statuses(),
            'sortable'   => true,
            'title'      => __( 'Status', 'lifterlms' ),
        ),
        'enrolled'    => array(
            'exportable' => true,
            'sortable'   => true,
            'title'      => __( 'Enrollment Updated', 'lifterlms' ),
        ),
        'completed'   => array(
            'exportable' => true,
            'sortable'   => true,
            'title'      => __( 'Completed', 'lifterlms' ),
        ),
        'progress'    => array(
            'exportable' => true,
            'sortable'   => false,
            'title'      => __( 'Progress', 'lifterlms' ),
        ),
        'grade'       => array(
            'exportable' => true,
            'sortable'   => false,
            'title'      => __( 'Grade', 'lifterlms' ),
        ),
        'last_lesson' => array(
            'sortable' => false,
            'title'    => __( 'Last Lesson', 'lifterlms' ),
        ),
    );
 
    return $cols;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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