The question_chooser renderable class.
More...
|
static | get ($course, $hiddenparams, array $allowedqtypes=null) |
| Get an instance of the question bank chooser. More...
|
|
The question_chooser renderable class.
- Copyright
- 2016 Frédéric Massart - FMCorz.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ add_param()
core\output\chooser::add_param |
( |
|
$name, |
|
|
|
$value, |
|
|
|
$id = null |
|
) |
| |
|
inherited |
Add a parameter to submit with the form.
- Parameters
-
string | $name | The parameter name. |
string | $value | The parameter value. |
string | $id | The parameter ID. |
◆ export_for_template()
core\output\chooser::export_for_template |
( |
renderer_base |
$output | ) |
|
|
inherited |
◆ get()
static core_question\output\qbank_chooser::get |
( |
|
$course, |
|
|
|
$hiddenparams, |
|
|
array |
$allowedqtypes = null |
|
) |
| |
|
staticinherited |
Get an instance of the question bank chooser.
- Parameters
-
stdClass | $course | The course. |
array | $hiddenparams | Hidden parameters. |
array | null | $allowedqtypes | Allowed question types. |
- Return values
-
◆ set_instructions()
core\output\chooser::set_instructions |
( |
lang_string |
$value | ) |
|
|
inherited |
Set the chooser instructions.
- Parameters
-
◆ set_method()
core\output\chooser::set_method |
( |
|
$value | ) |
|
|
inherited |
Set the form method.
- Parameters
-
◆ $params
array core\output\chooser::$params = [] |
|
inherited |
The documentation for this class was generated from the following file: