Bulk move helper.  
 More...
Bulk move helper. 
- Copyright
- 2021 Catalyst IT Australia Pty Ltd 
- Author
- Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ bulk_move_questions()
  
  | 
        
          | static qbank_bulkmove\helper::bulk_move_questions | ( | string | $movequestionselected, |  
          |  |  | stdClass | $tocategory ) |  | static | 
 
Bulk move questions to a category. 
- Parameters
- 
  
    | string | $movequestionselected | comma separated string of questions to be moved. |  | stdClass | $tocategory | the category where the questions will be moved to. |  
 
 
 
◆ get_displaydata()
  
  | 
        
          | static qbank_bulkmove\helper::get_displaydata | ( | array | $addcontexts, |  
          |  |  | moodle_url | $moveurl, |  
          |  |  | moodle_url | $returnurl ) |  | static | 
 
Get the display data for the move form. 
- Parameters
- 
  
    | array | $addcontexts | the array of contexts to be considered in order to render the category select menu. |  | moodle_url | $moveurl | the url where the move script will point to. |  | moodle_url | $returnurl | return url in case the form is cancelled. |  
 
- Return values
- 
  
    | array | the data to be rendered in the mustache where it contains the dropdown, move url and return url. |  
 
 
 
◆ process_question_ids()
  
  | 
        
          | static qbank_bulkmove\helper::process_question_ids | ( | array | $rawquestions | ) |  |  | static | 
 
Process the question came from the form post. 
- Parameters
- 
  
    | array | $rawquestions | raw questions came as a part of post. |  
 
- Return values
- 
  
    | array | question ids got from the post are processed and structured in an array. |  
 
 
 
The documentation for this class was generated from the following file: