Utility class used for return tracking when using edit and other forms in grade plugins.
More...
Utility class used for return tracking when using edit and other forms in grade plugins.
- Copyright
- 2009 Nicolas Connault
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
grade_plugin_return::__construct |
( |
|
$params = [] | ) |
|
Constructor.
- Parameters
-
array | $params | - associative array with return parameters, if not supplied parameter are taken from _GET or _POST |
◆ add_mform_elements()
grade_plugin_return::add_mform_elements |
( |
& |
$mform | ) |
|
Add hidden elements into mform.
- Parameters
-
object | &$mform | moodle form object |
- Return values
-
◆ add_url_params()
grade_plugin_return::add_url_params |
( |
moodle_url |
$url | ) |
|
Add return tracking params into url.
- Parameters
-
- Return values
-
string::$url | with return tracking params |
◆ get_form_fields()
grade_plugin_return::get_form_fields |
( |
| ) |
|
Returns string with hidden return tracking form elements.
- Return values
-
◆ get_options()
grade_plugin_return::get_options |
( |
| ) |
|
Returns return parameters as options array suitable for buttons.
- Return values
-
◆ get_return_url()
grade_plugin_return::get_return_url |
( |
|
$default, |
|
|
|
$extras = null |
|
) |
| |
Returns return url.
- Parameters
-
string | $default | default url when params not set |
array | $extras | Extra URL parameters |
- Return values
-
◆ grade_plugin_return()
grade_plugin_return::grade_plugin_return |
( |
|
$params = null | ) |
|
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ $courseid
int grade_plugin_return::$courseid |
◆ $groupid
int grade_plugin_return::$groupid |
Id of group for which information is being viewed/edited.
◆ $page
int grade_plugin_return::$page |
Current page # within output.
◆ $plugin
string grade_plugin_return::$plugin |
Name of grade plugin (e.g.
'grader', 'overview')
◆ $type
string grade_plugin_return::$type |
Type of grade plugin (e.g.
'edit', 'report')
◆ $userid
int grade_plugin_return::$userid |
Id of user whose information is being viewed/edited.
The documentation for this class was generated from the following file: