The gradebook simple view - base class for the table.
More...
|
| load_users () |
| Load a valid list of users for this gradebook as the screen "items". More...
|
|
|
course_context | $context |
| $context The course context
|
|
int | $courseid |
| $courseid The id of the course
|
|
array | $definition = array() |
| $definition Describes the columns in the table
|
|
int | $groupid |
| $groupid The currently set groupid (if set)
|
|
array | $headers = array() |
| $headers A list of table headers
|
|
array | $initerrors = array() |
| $initerrors A list of errors that mean we should not show the table
|
|
int | $itemid |
| $itemid Either a user id or a grade_item id
|
|
array | $items |
| $items List of items on the page, they could be users or grade_items
|
|
int | $page |
| $page The page number
|
|
int | $perpage |
| $perpage Results per page
|
|
|
static array | $validperpage = [20, 50, 100, 200, 400, 1000, 5000] |
| $validperpage List of allowed values for 'perpage' setting
|
|
The gradebook simple view - base class for the table.
- Copyright
- 2014 Moodle Pty Ltd (http://moodle.com)
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ bulk_insert()
gradereport_singleview\local\screen\tablelike::bulk_insert |
( |
| ) |
|
Get the HTML for the bulk insert form.
- Return values
-
◆ buttons()
gradereport_singleview\local\screen\tablelike::buttons |
( |
| ) |
|
Get the buttons for saving changes.
- Return values
-
◆ definition()
gradereport_singleview\local\screen\tablelike::definition |
( |
| ) |
|
Get the table definition.
- Return values
-
◆ display_group_selector()
gradereport_singleview\local\screen\screen::display_group_selector |
( |
| ) |
|
|
inherited |
Should we show the group selector?
- Return values
-
◆ fetch_grade_or_default()
gradereport_singleview\local\screen\screen::fetch_grade_or_default |
( |
|
$item, |
|
|
|
$userid |
|
) |
| |
|
inherited |
◆ format_definition()
gradereport_singleview\local\screen\tablelike::format_definition |
( |
|
$line, |
|
|
|
$grade |
|
) |
| |
Get a element to generate the HTML for this table row.
- Parameters
-
array | $line | This is a list of lines in the table (modified) |
grade_grade | $grade | The grade. |
- Return values
-
◆ format_line()
gradereport_singleview\local\screen\tablelike::format_line |
( |
|
$item | ) |
|
|
abstract |
◆ format_link()
gradereport_singleview\local\screen\screen::format_link |
( |
|
$screen, |
|
|
|
$itemid, |
|
|
|
$display = null |
|
) |
| |
|
inherited |
Create a nice link from a thing (user or grade_item).
- Parameters
-
string | $screen | |
int | $itemid | |
bool | $display | Should we wrap this in an anchor ? |
- Return values
-
◆ headers()
gradereport_singleview\local\screen\tablelike::headers |
( |
| ) |
|
Get the table headers.
- Return values
-
◆ heading()
gradereport_singleview\local\screen\screen::heading |
( |
| ) |
|
|
inherited |
◆ html()
gradereport_singleview\local\screen\tablelike::html |
( |
| ) |
|
◆ init()
gradereport_singleview\local\screen\screen::init |
( |
|
$selfitemisempty = false | ) |
|
|
abstractinherited |
◆ init_errors()
gradereport_singleview\local\screen\tablelike::init_errors |
( |
| ) |
|
Get the list of errors.
- Return values
-
◆ item_type()
gradereport_singleview\local\screen\screen::item_type |
( |
| ) |
|
|
abstractinherited |
◆ load_users()
gradereport_singleview\local\screen\screen::load_users |
( |
| ) |
|
|
protectedinherited |
Load a valid list of users for this gradebook as the screen "items".
- Return values
-
array::$users | A list of enroled users. |
◆ make_toggle()
gradereport_singleview\local\screen\screen::make_toggle |
( |
|
$key | ) |
|
|
inherited |
Make the HTML element that toggles all the checkboxes on or off.
- Parameters
-
string | $key | A unique key for this control - inserted in the classes. |
- Return values
-
◆ make_toggle_links()
gradereport_singleview\local\screen\screen::make_toggle_links |
( |
|
$key | ) |
|
|
inherited |
Make a toggle link with some text before it.
- Parameters
-
string | $key | A unique key for this control - inserted in the classes. |
- Return values
-
◆ options()
gradereport_singleview\local\screen\screen::options |
( |
| ) |
|
|
inherited |
◆ pager()
gradereport_singleview\local\screen\screen::pager |
( |
| ) |
|
|
inherited |
◆ perpage_select()
gradereport_singleview\local\screen\screen::perpage_select |
( |
| ) |
|
|
inherited |
Allow selection of number of items to display per page.
- Return values
-
◆ process()
gradereport_singleview\local\screen\screen::process |
( |
|
$data | ) |
|
|
inherited |
◆ set_definition()
gradereport_singleview\local\screen\tablelike::set_definition |
( |
|
$overwrite | ) |
|
Set the table definition.
- Parameters
-
array | $overwrite | New definition |
- Return values
-
◆ set_headers()
gradereport_singleview\local\screen\tablelike::set_headers |
( |
|
$overwrite | ) |
|
Set the table headers.
- Parameters
-
array | $overwrite | New headers |
- Return values
-
◆ set_init_error()
gradereport_singleview\local\screen\tablelike::set_init_error |
( |
|
$mesg | ) |
|
Set an error detected while building the page.
- Parameters
-
◆ summary()
gradereport_singleview\local\screen\tablelike::summary |
( |
| ) |
|
|
abstract |
◆ supports_next_prev()
gradereport_singleview\local\screen\screen::supports_next_prev |
( |
| ) |
|
|
inherited |
◆ supports_paging()
gradereport_singleview\local\screen\screen::supports_paging |
( |
| ) |
|
|
inherited |
The documentation for this class was generated from the following file: