From 17f602637cb708d670f45ba547dee2ea12f2066d Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 1 Jul 2016 13:38:30 +1200 Subject: [PATCH] Add Search API to base attendance record. --- classes/search/activity.php | 37 +++++++++++++++++++++++++++++++++++++ lang/en/attendance.php | 1 + 2 files changed, 38 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 0000000..f129d1b --- /dev/null +++ b/classes/search/activity.php @@ -0,0 +1,37 @@ +. + +/** + * 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 { +} diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 6db8ee7..edc0ec9 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -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