| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
The gradebook simple view - base class for the table. 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. | |
| 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. | |
| mixed | format_line ($item) | 
| Format a row of 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 default heading for the screen. | |
| html () | |
| Get the HTML for the whole table. | |
| 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_type () | |
| Get the type of items in the list. | |
| js () | |
| Initialise the js for this screen. | |
| options () | |
| By default, there are no options. | |
| pager () | |
| Default pager. | |
| perpage_select () | |
| Allow selection of number of items to display per page. | |
| process ($data) | |
| Process the data from a form submission. | |
| 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 screen support paging? | |
| 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. | |
| mixed | $item | 
| The grade item or user. | |
| 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. | |
The gradebook simple view - base class for the table.
| gradereport_singleview\local\screen\tablelike::bulk_insert | ( | ) | 
Get the HTML for the bulk insert form.
| string | 
| gradereport_singleview\local\screen\tablelike::buttons | ( | bool | $disabled = false | ) | 
Get the buttons for saving changes.
| bool | $disabled | If button is disabled | 
| array | 
| gradereport_singleview\local\screen\tablelike::definition | ( | ) | 
Get the table definition.
| array | The definition. | 
| 
 | 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 | 
| gradereport_singleview\local\screen\tablelike::format_definition | ( | grade_grade | $grade | ) | 
Get a element to generate the HTML for this table row.
| grade_grade | $grade | The grade. | 
| array | 
| 
 | abstract | 
Format a row of the table.
$item
| array | 
Reimplemented in gradereport_singleview\local\screen\grade, and gradereport_singleview\local\screen\user.
| 
 | 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 | 
| gradereport_singleview\local\screen\tablelike::headers | ( | ) | 
Get the table headers.
| array | 
| 
 | inherited | 
Get the default heading for the screen.
| string | 
Reimplemented in gradereport_singleview\local\screen\grade, gradereport_singleview\local\screen\grade_select, gradereport_singleview\local\screen\select, gradereport_singleview\local\screen\user, and gradereport_singleview\local\screen\user_select.
| gradereport_singleview\local\screen\tablelike::html | ( | ) | 
Get the HTML for the whole table.
| string | 
Reimplemented from gradereport_singleview\local\screen\screen.
| 
 | abstractinherited | 
Override this to init the screen.
| boolean | $selfitemisempty | True if no item has been selected yet. | 
| gradereport_singleview\local\screen\tablelike::init_errors | ( | ) | 
Get the list of errors.
| array | 
| gradereport_singleview\local\screen\tablelike::is_readonly | ( | ) | 
Return true if this is read-only.
| bool | 
Implements gradereport_singleview\local\ui\be_readonly.
| 
 | abstractinherited | 
Get the type of items in the list.
| null|string | 
Reimplemented in gradereport_singleview\local\screen\grade, gradereport_singleview\local\screen\grade_select, gradereport_singleview\local\screen\select, gradereport_singleview\local\screen\user, and gradereport_singleview\local\screen\user_select.
| 
 | protectedinherited | 
Load a valid list of users for this gradebook as the screen "items".
| array | A list of enroled users. | 
| 
 | inherited | 
By default, there are no options.
| array | 
Reimplemented in gradereport_singleview\local\screen\grade, and gradereport_singleview\local\screen\user.
| 
 | inherited | 
Default pager.
| string | 
Reimplemented in gradereport_singleview\local\screen\grade, and gradereport_singleview\local\screen\user.
| 
 | inherited | 
Allow selection of number of items to display per page.
| string | 
| 
 | inherited | 
Process the data from a form submission.
| array | object | $data | 
| stdClass | of warnings | 
Reimplemented in gradereport_singleview\local\screen\grade, and gradereport_singleview\local\screen\user.
| gradereport_singleview\local\screen\tablelike::set_definition | ( | array | $overwrite | ) | 
Set the table definition.
| array | $overwrite | New definition | 
| tablelike | This | 
| gradereport_singleview\local\screen\tablelike::set_headers | ( | array | $overwrite | ) | 
Set the table headers.
| array | $overwrite | New headers | 
| tablelike | This | 
| gradereport_singleview\local\screen\tablelike::set_init_error | ( | string | $mesg | ) | 
Set an error detected while building the page.
| string | $mesg | 
| 
 | abstract | 
Get the summary for this table.
| string | 
Reimplemented in gradereport_singleview\local\screen\grade, and gradereport_singleview\local\screen\user.
| 
 | inherited | 
Should we show the next prev selector?
| bool | 
Reimplemented in gradereport_singleview\local\screen\select.
| 
 | inherited | 
Does this screen support paging?
| bool | 
Reimplemented in gradereport_singleview\local\screen\grade, gradereport_singleview\local\screen\grade_select, gradereport_singleview\local\screen\select, gradereport_singleview\local\screen\user, and gradereport_singleview\local\screen\user_select.
| 
 | protected | 
The grade item or user.
$item