Add Search API to base attendance record.
authorDan Marsden <dan@danmarsden.com>
Fri, 1 Jul 2016 01:38:30 +0000 (13:38 +1200)
committerDan Marsden <dan@danmarsden.com>
Fri, 1 Jul 2016 01:38:30 +0000 (13:38 +1200)
classes/search/activity.php [new file with mode: 0644]
lang/en/attendance.php

diff --git a/classes/search/activity.php b/classes/search/activity.php
new file mode 100644 (file)
index 0000000..f129d1b
--- /dev/null
@@ -0,0 +1,37 @@
+<?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/>.
+
+/**
+ * Search area for mod_attendance activities.
+ *
+ * @package    mod_attendance
+ * @copyright  2016 Dan Marsden
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+namespace mod_attendance\search;
+
+defined('MOODLE_INTERNAL') || die();
+
+/**
+ * Search area for mod_attendance activities.
+ *
+ * @package    mod_attendance
+ * @copyright  2016 Dan Marsden
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+class activity extends \core_search\area\base_activity {
+}
index 6db8ee7..edc0ec9 100644 (file)
@@ -329,3 +329,4 @@ $string['repeatuntil'] = 'Repeat until';
 $string['repeaton'] = 'Repeat on';
 $string['invalidsessionendtime'] = 'The end time must be greater than start time';
 $string['deletedgroup'] = 'The group associated with this session has been deleted';
+$string['search:activity'] = 'Attendance - activity information';
\ No newline at end of file