|
Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
|
Namespaces | |
| namespace | core_question |
| | |
| namespace | core_question\admin |
| | |
| namespace | core_question\bank\search |
| | |
| namespace | core_question\engine\variants |
| | |
| namespace | core_question\external |
| | |
| namespace | core_question\local\bank |
| | |
| namespace | core_question\local\statistics |
| | |
| namespace | core_question\output |
| | |
| namespace | core_question\privacy |
| | |
| namespace | core_question\statistics\questions |
| | |
| namespace | core_question\statistics\responses |
| | |
Classes | |
| class | behat_core_question |
| class | behat_core_question_generator |
| Behat data generator for core_question. More... | |
| class | behat_question |
| class | behat_question_base |
| Steps definitions related with the question bank management. More... | |
| class | core_question\admin\manage_qbank_plugins_page |
| Class manage_qbank_plugins_page. More... | |
| class | core_question\bank\search\category_condition |
| This class controls from which category questions are listed. More... | |
| class | core_question\bank\search\condition |
| An abstract class for filtering/searching questions. More... | |
| class | core_question\bank\search\hidden_condition |
| This class controls whether hidden / deleted questions are hidden in the list. More... | |
| class | core_question\bank\search\tag_condition |
| Question bank search class to allow searching/filtering by tags on a question. 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 | 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_base |
| Base class for representing a column. More... | |
| class | core_question\local\bank\context_to_string_translator |
| 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\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_edit_contexts |
| class | core_question\local\bank\question_version_status |
| 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\statistics\statistics_bulk_loader |
| class | core_question\output\qbank_action_menu |
| class | core_question\output\question_version_selection |
| class | core_question\privacy\provider |
| Privacy Subsystem implementation for core_question. More... | |
| class | core_question\question_reference_manager |
| 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_external |
| Question external functions. 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_tags_form ($args) | |
| Question tags fragment callback. | |
| question_preview_action_url ($questionid, $qubaid, question_preview_options $options, $context) | |
| The the URL to use for actions relating to this preview. | |
| question_preview_form_url ($questionid, $context, $previewid=null) | |
| The the URL to use for actions relating to this preview. | |
| question_preview_question_pluginfile ($course, $context, $component, $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) | |
| Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview. | |
| question_rewrite_question_urls ($text, $file, $contextid, $component, $filearea, array $ids, $itemid, array $options=null) | |
| Helps call file_rewrite_pluginfile_urls with the right parameters. | |
| restart_preview ($previewid, $questionid, $displayoptions, $context) | |
| Delete the current preview, if any, and redirect to start a new preview. | |
| core_question_output_fragment_tags_form | ( | $args | ) |
Question tags fragment callback.
| array | $args | Arguments to the form. |
| null|string | The rendered form. |
| question_preview_action_url | ( | $questionid, | |
| $qubaid, | |||
| question_preview_options | $options, | ||
| $context ) |
The the URL to use for actions relating to this preview.
| int | $questionid | the question being previewed. |
| int | $qubaid | the id of the question usage for this preview. |
| question_preview_options | $options | the options in use. |
| context | $context |
| question_preview_form_url | ( | $questionid, | |
| $context, | |||
| $previewid = null ) |
The the URL to use for actions relating to this preview.
| int | $questionid | the question being previewed. |
| context | $context | the current moodle context. |
| int | $previewid | optional previewid to sign post saved previewed answers. |
| question_preview_question_pluginfile | ( | $course, | |
| $context, | |||
| $component, | |||
| $filearea, | |||
| $qubaid, | |||
| $slot, | |||
| $args, | |||
| $forcedownload, | |||
| $fileoptions ) |
Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview.
| stdClass | $course | course settings object |
| stdClass | $context | context object |
| string | $component | the name of the component we are serving files for. |
| string | $filearea | the name of the file area. |
| int | $qubaid | the question_usage this image belongs to. |
| int | $slot | the relevant slot within the usage. |
| array | $args | the remaining bits of the file path. |
| bool | $forcedownload | whether the user must be forced to download the file. |
| array | $fileoptions |
| void | false if file not found, does not return if found - justsend the file |
| question_rewrite_question_urls | ( | $text, | |
| $file, | |||
| $contextid, | |||
| $component, | |||
| $filearea, | |||
| array | $ids, | ||
| $itemid, | |||
| array | $options = null ) |
Helps call file_rewrite_pluginfile_urls with the right parameters.
| string | $text | text being processed |
| string | $file | the php script used to serve files |
| int | $contextid | context ID |
| string | $component | component |
| string | $filearea | filearea |
| array | $ids | other IDs will be used to check file permission |
| int | $itemid | item ID |
| array | $options | options |
| string |
| restart_preview | ( | $previewid, | |
| $questionid, | |||
| $displayoptions, | |||
| $context ) |
Delete the current preview, if any, and redirect to start a new preview.
| int | $previewid | |
| int | $questionid | |
| object | $displayoptions | |
| object | $context |