The question_chooser renderable class.  
 More...
|  | 
| static | get ($course, $hiddenparams, array $allowedqtypes=null) | 
|  | Get an instance of the question bank chooser. 
 | 
|  | 
|  | 
| moodle_url | $actionurl | 
|  | The form action URL. 
 | 
|  | 
| lang_string | $instructions | 
|  | The instructions to display. 
 | 
|  | 
| string | $method = 'post' | 
|  | The form method. 
 | 
|  | 
| string | $paramname | 
|  | The name of the parameter for the items value. 
 | 
|  | 
| array | $params = [] | 
|  | The list of hidden parameters. 
 | 
|  | 
| chooser_section[] | $sections | 
|  | The sections. 
 | 
|  | 
| lang_string | $title | 
|  | The chooser title. 
 | 
|  | 
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 | 
 
Export for template. 
- Parameters
- 
  
  
- Return values
- 
  
  
Implements templatable.
 
 
◆ get()
  
  | 
        
          | static qbank_editquestion\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: