From 6819a4658bcde9f493bbf2dc8499fbd639e4e801 Mon Sep 17 00:00:00 2001 From: Michiel Boerman Date: Fri, 28 Jun 2019 16:33:39 +0200 Subject: [PATCH 1/3] added search indexing class for indexing basic activity information (title + description) see https://docs.moodle.org/dev/Search_API#Easy_case:_Activity_information --- classes/search/activity.php | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..8dff34f1 --- /dev/null +++ b/classes/search/activity.php @@ -0,0 +1,46 @@ +. + +/** + * Search area for mod_hvp activities. + * + * @package mod_hvp + * @copyright 2019 Michiel Boerman + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mod_hvp\search; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Search area for mod_hvp activities. + * + * @package mod_vp + * @copyright 2019 Michiel Boerman + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class activity extends \core_search\base_activity { + + /** + * Returns true if this area uses file indexing. + * + * @return bool + */ + public function uses_file_indexing() { + return true; + } +} From 4f48c303bc7d1503362e3b43fab1752f3fe3ff1e Mon Sep 17 00:00:00 2001 From: Michiel Boerman Date: Fri, 28 Jun 2019 16:33:39 +0200 Subject: [PATCH 2/3] added search indexing class for indexing basic activity information (title + description) see https://docs.moodle.org/dev/Search_API#Easy_case:_Activity_information (cherry picked from commit 6819a4658bcde9f493bbf2dc8499fbd639e4e801) --- classes/search/activity.php | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..8dff34f1 --- /dev/null +++ b/classes/search/activity.php @@ -0,0 +1,46 @@ +. + +/** + * Search area for mod_hvp activities. + * + * @package mod_hvp + * @copyright 2019 Michiel Boerman + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mod_hvp\search; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Search area for mod_hvp activities. + * + * @package mod_vp + * @copyright 2019 Michiel Boerman + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class activity extends \core_search\base_activity { + + /** + * Returns true if this area uses file indexing. + * + * @return bool + */ + public function uses_file_indexing() { + return true; + } +} From 14ed52d594d67d0175f4f9b5d9f793148dda77be Mon Sep 17 00:00:00 2001 From: Michiel Boerman Date: Tue, 10 Sep 2019 15:07:35 +0200 Subject: [PATCH 3/3] pull from upstream --- editor | 2 +- library | 2 +- reporting | 2 +- version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor b/editor index 7fc23cda..4246abf2 160000 --- a/editor +++ b/editor @@ -1 +1 @@ -Subproject commit 7fc23cda93ae4225320f4903017c67e8f4294157 +Subproject commit 4246abf277cfed730a2f55bf14cddac137aca0c1 diff --git a/library b/library index 7bc8666f..d05bc94d 160000 --- a/library +++ b/library @@ -1 +1 @@ -Subproject commit 7bc8666f309220a0eb93bca49aaa741bb013b26a +Subproject commit d05bc94d92e225f59f536d0993fc7d65a89e9cae diff --git a/reporting b/reporting index 7a7c9a40..4539b965 160000 --- a/reporting +++ b/reporting @@ -1 +1 @@ -Subproject commit 7a7c9a40f600eacc2585f039d877c346a34af559 +Subproject commit 4539b9650f8206ecef8054b5186161bed228c815 diff --git a/version.php b/version.php index 3601385d..c1484215 100644 --- a/version.php +++ b/version.php @@ -23,7 +23,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2019081600; +$plugin->version = 2019081601; $plugin->requires = 2013051403; $plugin->cron = 0; $plugin->component = 'mod_hvp';