Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
The screen with a list of users. More...
Public Member Functions | |
bulk_insert () | |
Get the HTML for the bulk insert form. | |
buttons (bool $disabled=false) | |
Get the buttons for saving changes. | |
definition () | |
Get the table definition. | |
description () | |
Get the description of this page. | |
display_group_selector () | |
Should we show the group selector? | |
fetch_grade_or_default (grade_item $item, int $userid) | |
Get the grade_grade. | |
format_definition (grade_grade $grade) | |
Get a element to generate the HTML for this table row. | |
format_line ($item) | |
Format a row in the table. | |
format_link (string $screen, int $itemid, bool $display=null) | |
Create a nice link from a thing (user or grade_item). | |
headers () | |
Get the table headers. | |
heading () | |
Get the heading for this page. | |
html () | |
Get the HTML for the whole table. | |
init ($selfitemisempty=false) | |
Init this page. | |
init (bool $selfitemisempty=false) | |
Override this to init the screen. | |
init_errors () | |
Get the list of errors. | |
is_readonly () | |
Return true if this is read-only. | |
item_range () | |
Get the range ui element for this grade_item. | |
item_type () | |
Return the type of the things in this list. | |
js () | |
Initialise the js for this screen. | |
options () | |
Convert this list of items into an options list. | |
original_definition () | |
Get the original settings for this item. | |
original_headers () | |
Get the table headers. | |
pager () | |
Get the pager for this page. | |
perpage_select () | |
Allow selection of number of items to display per page. | |
process ($data) | |
Process the data from the form. | |
select_label () | |
Get the label for the select box that chooses items for this page. | |
set_definition (array $overwrite) | |
Set the table definition. | |
set_headers (array $overwrite) | |
Set the table headers. | |
set_init_error (string $mesg) | |
Set an error detected while building the page. | |
setup_structure () | |
Cache the grade_structure class. | |
summary () | |
Get the summary for this table. | |
supports_next_prev () | |
Should we show the next prev selector? | |
supports_paging () | |
Does this page require paging? | |
Static Public Member Functions | |
static | allowcategories () |
True if $CFG->grade_overridecat is true. | |
static | filter ($item) |
Filter the list excluding category items (if required)? | |
Public Attributes | |
grade_item bool | $item |
Returns a grade_item instance or false if none found. | |
$range | |
Protected Member Functions | |
load_users () | |
Load a valid list of users for this gradebook as the screen "items". | |
Protected Attributes | |
context_course | $context |
The course context $context. | |
stdClass | $course |
To store course data. | |
int | $courseid |
The id of the course $courseid. | |
array | $definition = [] |
Describes the columns in the table $definition. | |
int | $groupid |
The currently set groupid (if set) $groupid. | |
array | $headers = [] |
A list of table headers $headers. | |
int | $index |
Table tab index $index. | |
array | $initerrors = [] |
A list of errors that mean we should not show the table $initerrors. | |
int null | $itemid |
Either a user id or a grade_item id $itemid. | |
array | $items |
List of items on the page, they could be users or grade_items $items. | |
int | $page |
The page number $page. | |
int | $perpage |
Results per page $perpage. | |
grade_structure | $structure |
General structure representing grade items in course. | |
int | $total |
Total items $total. | |
range | |
To store UI element that generates a grade_item min/max range. | |
The screen with a list of users.
|
static |
True if $CFG->grade_overridecat is true.
bool |
|
inherited |
Get the HTML for the bulk insert form.
string |
|
inherited |
Get the buttons for saving changes.
bool | $disabled | If button is disabled |
array |
|
inherited |
Get the table definition.
array | The definition. |
gradereport_singleview\local\screen\grade::description | ( | ) |
Get the description of this page.
string |
Implements gradereport_singleview\local\screen\selectable_items.
|
inherited |
Should we show the group selector?
bool |
Reimplemented in gradereport_singleview\local\screen\grade_select, gradereport_singleview\local\screen\select, and gradereport_singleview\local\screen\user_select.
|
inherited |
Get the grade_grade.
grade_item | $item | The grade_item |
int | $userid | The user id |
grade_grade |
|
static |
Filter the list excluding category items (if required)?
grade_item | $item | The grade item. |
bool |
Implements gradereport_singleview\local\screen\filterable_items.
|
inherited |
Get a element to generate the HTML for this table row.
grade_grade | $grade | The grade. |
array |
gradereport_singleview\local\screen\grade::format_line | ( | $item | ) |
Format a row in the table.
stdClass | $item |
array |
Reimplemented from gradereport_singleview\local\screen\tablelike.
|
inherited |
Create a nice link from a thing (user or grade_item).
string | $screen | |
int | $itemid | |
bool | null | $display | Should we wrap this in an anchor ? |
string | The link |
|
inherited |
Get the table headers.
array |
gradereport_singleview\local\screen\grade::heading | ( | ) |
Get the heading for this page.
string |
Reimplemented from gradereport_singleview\local\screen\screen.
|
inherited |
Get the HTML for the whole table.
string |
Reimplemented from gradereport_singleview\local\screen\screen.
gradereport_singleview\local\screen\grade::init | ( | $selfitemisempty = false | ) |
Init this page.
bool | $selfitemisempty | True if we have not selected a user. |
|
abstractinherited |
Override this to init the screen.
boolean | $selfitemisempty | True if no item has been selected yet. |
|
inherited |
Get the list of errors.
array |
|
inherited |
Return true if this is read-only.
bool |
Implements gradereport_singleview\local\ui\be_readonly.
gradereport_singleview\local\screen\grade::item_range | ( | ) |
Get the range ui element for this grade_item.
element; |
gradereport_singleview\local\screen\grade::item_type | ( | ) |
Return the type of the things in this list.
string |
Reimplemented from gradereport_singleview\local\screen\screen.
|
protectedinherited |
Load a valid list of users for this gradebook as the screen "items".
array | A list of enroled users. |
gradereport_singleview\local\screen\grade::options | ( | ) |
Convert this list of items into an options list.
array |
Reimplemented from gradereport_singleview\local\screen\screen.
gradereport_singleview\local\screen\grade::original_definition | ( | ) |
Get the original settings for this item.
array |
gradereport_singleview\local\screen\grade::original_headers | ( | ) |
Get the table headers.
array |
gradereport_singleview\local\screen\grade::pager | ( | ) |
Get the pager for this page.
string |
Reimplemented from gradereport_singleview\local\screen\screen.
|
inherited |
Allow selection of number of items to display per page.
string |
gradereport_singleview\local\screen\grade::process | ( | $data | ) |
Process the data from the form.
array | $data |
stdClass | of warnings |
Reimplemented from gradereport_singleview\local\screen\screen.
gradereport_singleview\local\screen\grade::select_label | ( | ) |
Get the label for the select box that chooses items for this page.
string |
Implements gradereport_singleview\local\screen\selectable_items.
|
inherited |
Set the table definition.
array | $overwrite | New definition |
tablelike | This |
|
inherited |
Set the table headers.
array | $overwrite | New headers |
tablelike | This |
|
inherited |
Set an error detected while building the page.
string | $mesg |
gradereport_singleview\local\screen\grade::summary | ( | ) |
Get the summary for this table.
string |
Reimplemented from gradereport_singleview\local\screen\tablelike.
|
inherited |
Should we show the next prev selector?
bool |
Reimplemented in gradereport_singleview\local\screen\select.
gradereport_singleview\local\screen\grade::supports_paging | ( | ) |
Does this page require paging?
bool |
Reimplemented from gradereport_singleview\local\screen\screen.