Browse Source

Add Search API to base attendance record.

MOODLE_31_STABLE
Dan Marsden 9 years ago
parent
commit
17f602637c
  1. 37
      classes/search/activity.php
  2. 1
      lang/en/attendance.php

37
classes/search/activity.php

@ -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 {
}

1
lang/en/attendance.php

@ -329,3 +329,4 @@ $string['repeatuntil'] = 'Repeat until';
$string['repeaton'] = 'Repeat on'; $string['repeaton'] = 'Repeat on';
$string['invalidsessionendtime'] = 'The end time must be greater than start time'; $string['invalidsessionendtime'] = 'The end time must be greater than start time';
$string['deletedgroup'] = 'The group associated with this session has been deleted'; $string['deletedgroup'] = 'The group associated with this session has been deleted';
$string['search:activity'] = 'Attendance - activity information';
Loading…
Cancel
Save