e01efa2cfd
Includes all the conditions that were in previous Moodle versions: * Date * Grade * Completion (of another activity) * User profile field Also includes conditions that are used to reimplement groupmembersonly: * Grouping * Group For each condition, the component plus unit tests are included. PLEASE NOTE: The code to actually check each condition is reused from previous Moodle versions and has not been modified except to pass codechecker. This is intentional, to reduce the risk of the change and maximise the chance that behaviour is preserved. Some of this code might not be very good and might need updating but that can happen separately. AMOS BEGIN CPY [contains,core_condition],[op_contains,availability_profile] CPY [doesnotcontain,core_condition],[op_doesnotcontain,availability_profile] CPY [endswith,core_condition],[op_endswith,availability_profile] CPY [isempty,core_condition],[op_isempty,availability_profile] CPY [isequalto,core_condition],[op_isequalto,availability_profile] CPY [isnotempty,core_condition],[op_isnotempty,availability_profile] CPY [startswith,core_condition],[op_startswith,availability_profile] CPY [completion_fail,core_condition],[option_fail,availability_completion] CPY [completion_pass,core_condition],[option_pass,availability_completion] CPY [completion_complete,core_condition],[option_complete,availability_completion] CPY [completion_incomplete,core_condition],[option_incomplete,availability_completion] AMOS END
44 lines
2.2 KiB
PHP
44 lines
2.2 KiB
PHP
<?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/>.
|
|
|
|
/**
|
|
* Language strings.
|
|
*
|
|
* @package availability_grade
|
|
* @copyright 2014 The Open University
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
$string['cachedef_items'] = 'Grade items cached for evaluating conditional availability';
|
|
$string['cachedef_scores'] = 'User grades cached for evaluating conditional availability';
|
|
$string['description'] = 'Require students to achieve a specified grade.';
|
|
$string['error_backwardrange'] = 'When specifying a grade range, the minimum must be lower than the maximum.';
|
|
$string['error_invalidnumber'] = 'Grade ranges must be specified with valid percentages.';
|
|
$string['error_selectgradeid'] = 'You must select a grade item for the grade condition.';
|
|
$string['label_min'] = 'Minimum grade percentage (inclusive)';
|
|
$string['label_max'] = 'Maximum grade percentage (exclusive)';
|
|
$string['option_min'] = 'must be ≥';
|
|
$string['option_max'] = 'must be <';
|
|
$string['pluginname'] = 'Restriction by grades';
|
|
$string['requires_any'] = 'You have a grade in <strong>{$a}</strong>';
|
|
$string['requires_max'] = 'You get an appropriate score in <strong>{$a}</strong>';
|
|
$string['requires_min'] = 'You achieve a required score in <strong>{$a}</strong>';
|
|
$string['requires_notany'] = 'You do not have a grade in <strong>{$a}</strong>';
|
|
$string['requires_notgeneral'] = 'You do not get certain scores in <strong>{$a}</strong>';
|
|
$string['requires_range'] = 'You get a particular score in <strong>{$a}</strong>';
|
|
$string['missing'] = '(missing activity)';
|
|
$string['title'] = 'Grade';
|