Skip to content

Commit

Permalink
Declare basic indexation of name and intro for global search
Browse files Browse the repository at this point in the history
  • Loading branch information
Astor-Bizard committed Jun 28, 2023
1 parent d9a6ae3 commit c372607
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions classes/search/activity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.


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;
}
}
1 change: 1 addition & 0 deletions lang/en/vpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>It is more reliable than only browser check.<br>https://safeexambrowser.org';
$string['sebrequired'] = 'SEB browser required';
Expand Down

0 comments on commit c372607

Please sign in to comment.