Main course enrolment table.
More...
|
bool | $otherusers |
| To store status of Other users page.
|
|
int | $page = 0 |
| The current page, starting from 0.
|
|
int | $pages = 0 |
| The total number of pages.
|
|
int | $perpage = 0 |
| The number of items to display per page.
|
|
string | $sort |
| The sort field for this table, should be one of course_enrolment_table\$sortablefields.
|
|
string | $sortdirection |
| The sort direction, either ASC or DESC.
|
|
const | DEFAULTPERPAGE = 100 |
| The default number of items per page.
|
|
const | DEFAULTSORT = 'lastname' |
| The default sort, options are course_enrolment_table\$sortablefields Default: lastname.
|
|
const | DEFAULTSORTDIRECTION = 'ASC' |
| The default direction Default: ASC.
|
|
const | PAGEVAR = 'page' |
| The get/post variable that is used to identify the page.
|
|
const | PERPAGEVAR = 'perpage' |
| The get/post variable to is used to identify the number of items to display per page.
|
|
const | SORTDIRECTIONVAR = 'dir' |
| The get/post variable that is used to identify the sort direction for the table.
|
|
const | SORTVAR = 'sort' |
| The get/post variable that is used to identify the sort field for the table.
|
|
|
| get_direction_icon ($output, $field) |
| Gets the direction icon for the sortable field within this table.
|
|
|
array | $bulkoperations = array() |
| An array of bulk user enrolment operations.
|
|
array | $fields = array() |
| The fields for this table.
|
|
course_enrolment_manager | $manager |
| The course manager this table is displaying for.
|
|
paging_bar | $pagingbar = null |
| The paging bar that controls the paging for this table.
|
|
int | $totalusers = null |
| The total number of users enrolled in the course.
|
|
array | $users = null |
| The users enrolled in this course.
|
|
Main course enrolment table.
This table is used to display the enrolment information for a course. It requires that a course enrolment manager be provided during constuct with provides all of the information for the table. The control then produces the table, the paging, and the associated JS actions for the page.
@subpackage enrol
- Copyright
- 2010 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
◆ get_bulk_user_enrolment_operations()
course_enrolment_table::get_bulk_user_enrolment_operations |
( |
| ) |
|
Returns an array of bulk operations.
- Return values
-
◆ get_combined_url_params()
course_enrolment_table::get_combined_url_params |
( |
| ) |
|
Returns an array of URL params for both the table and the manager.
- Return values
-
◆ get_direction_icon()
course_enrolment_table::get_direction_icon |
( |
| $output, |
|
|
| $field ) |
|
protected |
Gets the direction icon for the sortable field within this table.
- Parameters
-
core_renderer | $output | |
string | $field | |
- Return values
-
◆ get_field_sort_direction()
course_enrolment_table::get_field_sort_direction |
( |
| $field | ) |
|
Gets the sort direction for a given field.
- Parameters
-
- Return values
-
◆ get_manual_enrol_buttons()
course_enrolment_table::get_manual_enrol_buttons |
( |
| ) |
|
Returns an array of enrol_user_buttons that are created by the different enrolment plugins available.
- Return values
-
◆ get_paging_bar()
course_enrolment_table::get_paging_bar |
( |
| ) |
|
Gets the paging bar instance for this table.
- Return values
-
◆ get_url_params()
course_enrolment_table::get_url_params |
( |
| ) |
|
Gets the params that will need to be added to the url in order to return to this page.
- Return values
-
◆ has_bulk_user_enrolment_operations()
course_enrolment_table::has_bulk_user_enrolment_operations |
( |
| ) |
|
Returns true fi the table is aware of any bulk operations that can be performed on users selected from the currently filtered enrolment plugins.
- Return values
-
◆ set_bulk_user_enrolment_operations()
course_enrolment_table::set_bulk_user_enrolment_operations |
( |
array | $bulkoperations | ) |
|
Sets the bulk operations for this table.
- Parameters
-
◆ set_fields()
course_enrolment_table::set_fields |
( |
| $fields, |
|
|
| $output ) |
Sets the fields for this table.
These get added to the tables head as well.
You can also use a multi dimensional array for this to have multiple fields in a single column
- Parameters
-
array | $fields | An array of fields to set |
string | $output | |
◆ set_total_users()
course_enrolment_table::set_total_users |
( |
| $totalusers | ) |
|
Sets the total number of users.
- Parameters
-
◆ set_users()
course_enrolment_table::set_users |
( |
array | $users | ) |
|
Sets the users for this table.
- Parameters
-
- Return values
-
◆ $sortablefields
array course_enrolment_table::$sortablefields |
|
staticprotected |
Initial value:= array('firstname', 'lastname', 'firstnamephonetic', 'lastnamephonetic', 'middlename',
'alternatename', 'username', 'idnumber', 'email', 'phone1', 'phone2',
'institution', 'department', 'lastaccess', 'lastcourseaccess')
An array of sortable fields.
◆ DEFAULTPERPAGE
const course_enrolment_table::DEFAULTPERPAGE = 100 |
The default number of items per page.
Default: 100
◆ PAGEVAR
const course_enrolment_table::PAGEVAR = 'page' |
The get/post variable that is used to identify the page.
Default: page
◆ PERPAGEVAR
const course_enrolment_table::PERPAGEVAR = 'perpage' |
The get/post variable to is used to identify the number of items to display per page.
Default: perpage
◆ SORTDIRECTIONVAR
const course_enrolment_table::SORTDIRECTIONVAR = 'dir' |
The get/post variable that is used to identify the sort direction for the table.
Default: dir
◆ SORTVAR
const course_enrolment_table::SORTVAR = 'sort' |
The get/post variable that is used to identify the sort field for the table.
Default: sort
The documentation for this class was generated from the following file: