Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core_question

Topics

 external
 
 
 files
 
 
 privacy
 
 
 test
 
 

Namespaces

namespace  core_question
  
 
namespace  core_question\admin
 Manage question banks page.
 
namespace  core_question\engine\variants
 A question_variant_selection_strategy that randomly selects variants that were not used yet.
 
namespace  core_question\external
 Class for exporting a question icon from an stdClass.
 
namespace  core_question\local\bank
 A base class for actions that are an icon that lets you manipulate the question in some way.
 
namespace  core_question\local\statistics
  
 
namespace  core_question\output
  
 
namespace  core_question\statistics\questions
 A collection of all the question statistics calculated for an activity instance ie.
 
namespace  core_question\statistics\responses
 This file contains the code to analyse all the responses to a particular question.
 

Classes

class  core_question\admin\manage_qbank_plugins_page
 Class manage_qbank_plugins_page. More...
 
class  core_question\engine\variants\least_used_strategy
 A question_variant_selection_strategy that randomly selects variants that were not used yet. More...
 
class  core_question\external\question_icon_exporter
 Class for exporting a question from an stdClass. More...
 
class  core_question\external\question_summary_exporter
 Class for exporting a question summary from an stdClass. More...
 
class  core_question\local\bank\action_column_base
 A base class for actions that are an icon that lets you manipulate the question in some way. More...
 
class  core_question\local\bank\bulk_action_base
 Class bulk_action_base is the base class for bulk actions ui. More...
 
class  core_question\local\bank\checkbox_column
 A column with a checkbox for each question with name q{questionid}. More...
 
class  core_question\local\bank\column_action_base
 Base class to implement actions that can be performed on any column. More...
 
class  core_question\local\bank\column_base
 Base class for representing a column. More...
 
class  core_question\local\bank\column_manager_base
 Default column manager class. More...
 
class  core_question\local\bank\condition
 An abstract class for filtering/searching questions. More...
 
class  core_question\local\bank\context_to_string_translator
 Converts contextlevels to strings and back to help with reading/writing contexts to/from import/export files. More...
 
class  core_question\local\bank\edit_menu_column
 A question bank column which gathers together all the actions into a menu. More...
 
class  core_question\local\bank\filter_condition_manager
 Static methods for parsing and formatting data related to filter conditions. More...
 
class  core_question\local\bank\helper
 Class helper. More...
 
class  core_question\local\bank\menu_action_column_base
 Base class to make it easier to implement actions that are menuable_actions. More...
 
interface  core_question\local\bank\menuable_action
 Interface to indicate that a question bank column can go in the action menu. More...
 
class  core_question\local\bank\navigation_node_base
 Class navigation_node_base is the base class for navigation node. More...
 
class  core_question\local\bank\plugin_features_base
 Class plugin_features_base is the base class for qbank plugins. More...
 
class  core_question\local\bank\question_action_base
 Base class to make it easier to implement actions that are menuable_actions. More...
 
class  core_question\local\bank\question_edit_contexts
 Tracks all the contexts related to the one we are currently editing questions and provides helper methods to check permissions. More...
 
class  core_question\local\bank\question_version_status
 Class question_version_status contains the statuses for a question. More...
 
class  core_question\local\bank\random_question_loader
 This class efficiently finds questions at random from the question bank. More...
 
class  core_question\local\bank\row_base
 Base class for 'columns' that are actually displayed as a row following the main question row. More...
 
class  core_question\local\bank\view
 This class prints a view of the question bank. More...
 
class  core_question\local\bank\view_component
 Abstract class to define functionality shared by all pluggable components used in the question bank view. More...
 
class  core_question\local\statistics\statistics_bulk_loader
 Helper to efficiently load all the statistics for a set of questions. More...
 
class  core_question\output\qbank_action_menu
 Rendered HTML elements for tertiary nav for Question bank. More...
 
class  core_question\output\question_bank_filter_ui
 Class for rendering filters on the base view. More...
 
class  core_question\output\question_version_info
 Track and display question version information. More...
 
class  core_question\output\question_version_selection
 A UI widget to select other versions of a particular question. More...
 
class  core_question\question_reference_manager
 This class should provide an API for managing question_references. More...
 
class  core_question\statistics\questions\all_calculated_for_qubaid_condition
 A collection of all the question statistics calculated for an activity instance. More...
 
class  core_question\statistics\questions\calculated_for_subquestion
 A class to store calculated stats for a sub question. More...
 
class  core_question\statistics\questions\calculated_question_summary
 Class calculated_question_summary. More...
 
class  core_question\statistics\responses\analyser
 This class can compute, store and cache the analysis of the responses to a particular question. More...
 
class  core_question\statistics\responses\analysis_for_actual_response
 The leafs of the analysis data structure. More...
 
class  core_question\statistics\responses\analysis_for_class
 Counts a class of responses for this sub part of the question. More...
 
class  core_question\statistics\responses\analysis_for_question
 Analysis for possible responses for parts of a question. More...
 
class  core_question\statistics\responses\analysis_for_question_all_tries
 Analysis for possible responses for parts of a question with multiple submitted responses. More...
 
class  core_question\statistics\responses\analysis_for_subpart
 Representing the analysis of each of the sub parts of each variant of the question. More...
 
class  core_question_bank_renderer
 This renderer outputs parts of the question bank. More...
 
class  core_question_generator
 Class core_question_generator for generating question data. More...
 
class  qubaid_condition
 This class represents a restriction on the set of question_usage ids to include in a larger database query. More...
 
class  qubaid_join
 This class represents a restriction on the set of question_usage ids to include in a larger database query based on JOINing to some other tables. More...
 
class  qubaid_list
 This class represents a restriction on the set of question_usage ids to include in a larger database query based on an explicit list of ids. More...
 
class  question_engine_data_mapper
 This class controls the loading and saving of question engine data to and from the database. More...
 
class  question_engine_unit_of_work
 Implementation of the unit of work pattern for the question engine. More...
 
class  question_file_loader
 This class is the mirror image of question_file_saver. More...
 
class  question_file_saver
 This class represents the promise to save some files from a particular draft file area into a particular file area. More...
 
interface  question_response_files
 The interface implemented by question_file_saver and question_file_loader. More...
 

Functions

 core_question_output_fragment_question_data (array $args)
 Question data fragment to get the question html via ajax call.
 
 core_question_output_fragment_tags_form ($args)
 Question tags fragment callback.
 

Detailed Description

Function Documentation

◆ core_question_output_fragment_question_data()

core_question_output_fragment_question_data ( array $args)

Question data fragment to get the question html via ajax call.

Parameters
array$argsArguments for rendering the fragment. Expected keys:
  • view - the view class
  • cmid - if in an activity, the course module ID.
  • filterquery - the current filters encoded as a URL parameter.
  • lastchanged - the ID of the last edited question.
  • sortdata - Array of sorted columns.
  • filtercondition - the current filters encoded as an object.
  • extraparams - additional parameters required for a particular view class.
Return values
array|string

◆ core_question_output_fragment_tags_form()

core_question_output_fragment_tags_form ( $args)

Question tags fragment callback.

Parameters
array$argsArguments to the form.
Return values
null|stringThe rendered form.
Deprecated
since Moodle 4.0
See also
/question/bank/qbank_tagquestion/lib.php
Todo
Final deprecation on Moodle 4.4 MDL-72438