From c3726070d661c91a860752460036cdda5b008d9c Mon Sep 17 00:00:00 2001
From: Astor Bizard <13221286+Astor-Bizard@users.noreply.github.com>
Date: Wed, 28 Jun 2023 15:25:43 +0200
Subject: [PATCH] Declare basic indexation of name and intro for global search
---
classes/search/activity.php | 32 ++++++++++++++++++++++++++++++++
lang/en/vpl.php | 1 +
2 files changed, 33 insertions(+)
create mode 100644 classes/search/activity.php
diff --git a/classes/search/activity.php b/classes/search/activity.php
new file mode 100644
index 00000000..77c8c81b
--- /dev/null
+++ b/classes/search/activity.php
@@ -0,0 +1,32 @@
+.
+
+
+namespace mod_vpl\search;
+
+defined('MOODLE_INTERNAL') || die();
+
+class activity extends \core_search\base_activity {
+
+ /**
+ * Returns true if this area uses file indexing.
+ *
+ * @return bool
+ */
+ public function uses_file_indexing() {
+ return true;
+ }
+}
diff --git a/lang/en/vpl.php b/lang/en/vpl.php
index 485707e8..911d254a 100644
--- a/lang/en/vpl.php
+++ b/lang/en/vpl.php
@@ -303,6 +303,7 @@
$string['scanoptions'] = 'Scan options';
$string['scanother'] = 'Scan similarities in added sources';
$string['scanzipfile'] = 'Zip file';
+$string['search:activity'] = 'Virtual Programming Lab - activity information';
$string['sebkeys'] = 'SEB exam Key/s';
$string['sebkeys_help'] = 'SEB exam key(s) (max 3) obtained from .seb file
It is more reliable than only browser check.
https://safeexambrowser.org';
$string['sebrequired'] = 'SEB browser required';