LLMS_Table_Course_Students::set_columns()

Define the structure of the table


Description Description


Return Return

(array)


Top ↑

Source Source

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

	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.





Permalink: