diff --git a/classes/event/question_version_imported.php b/classes/event/question_version_imported.php index 1195aec..c006fc9 100644 --- a/classes/event/question_version_imported.php +++ b/classes/event/question_version_imported.php @@ -37,11 +37,13 @@ */ class question_version_imported extends question_base { + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing protected function init() { parent::init(); $this->data['crud'] = 'u'; } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing protected function validate_data() { parent::validate_data(); if (!isset($this->other['questionbankentryid'])) { @@ -52,20 +54,24 @@ protected function validate_data() { } } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public static function get_name() { return get_string('event:question_version_imported', 'qbank_importasversion'); } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function get_description() { return "The user with id '$this->userid' imported a new version " . "'{$this->other['version']}' (question id '$this->objectid') of the " . "question bank entry with id '{$this->other['questionbankentryid']}' in course '$this->courseid'."; } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public static function get_objectid_mapping() { return ['db' => 'question', 'restore' => 'question']; } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public static function get_other_mapping() { return [ 'questionbankentryid' => ['db' => 'question_bank_entries', 'restore' => 'question_bank_entries'], diff --git a/classes/import_as_version_action_column.php b/classes/import_as_version_action_column.php index 1ace068..3db4e7f 100644 --- a/classes/import_as_version_action_column.php +++ b/classes/import_as_version_action_column.php @@ -41,19 +41,23 @@ class import_as_version_action_column extends qbank_importasversion_column_paren /** @var string store the value of the name lang string for performance. */ protected $actionname; + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function init(): void { parent::init(); $this->actionname = get_string('importasversion', 'qbank_importasversion'); } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function get_name(): string { return 'importasversion'; } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function get_menu_position(): int { return 650; } + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing protected function get_url_icon_and_label(\stdClass $question): array { if (!\question_bank::is_qtype_installed($question->qtype)) { // It sometimes happens that people end up with junk questions diff --git a/classes/plugin_feature.php b/classes/plugin_feature.php index a1d13a9..33642df 100644 --- a/classes/plugin_feature.php +++ b/classes/plugin_feature.php @@ -28,6 +28,7 @@ */ class plugin_feature extends plugin_features_base { + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function get_question_actions(view $qbank): array { // This is what is used in Moodle 4.3+. return [ @@ -36,6 +37,7 @@ public function get_question_actions(view $qbank): array { } // Support multiple Moodle versions. This method can be removed once 4.3 is the lowest supported version. + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public function get_question_columns($qbank): array { if (class_exists('\core_question\local\bank\question_action_base')) { // We are in Moodle 4.3+. We don't need to implement this method. diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index cd1e71d..c4e873d 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -28,6 +28,7 @@ */ class provider implements null_provider { + // phpcs:ignore moodle.Commenting.MissingDocblock.Missing public static function get_reason(): string { return 'privacy:metadata'; }