Also did the following - 1. Changed get_grade_items() so it takes a course parameter. 2. Renamed get_grade() and get_mod_grade() and changed functionality slightly to use newly introduced class. 3. Do not return a date graded value if there is no grade. 4. Added course grade date as an option to the date element. 5. Fix inconsistency between number of decimals showing for a grade between the drag and drop interface and the PDF.
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<?php
|
|
// This file is part of the customcert module for 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/>.
|
|
|
|
/**
|
|
* Strings for component 'customcertelement_date', language 'en'.
|
|
*
|
|
* @package customcertelement_date
|
|
* @copyright 2013 Mark Nelson <markn@moodle.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
$string['completiondate'] = 'Completion date';
|
|
$string['courseenddate'] = 'Course end date';
|
|
$string['coursegradedate'] = 'Course grade date';
|
|
$string['coursestartdate'] = 'Course start date';
|
|
$string['dateformat'] = 'Date format';
|
|
$string['dateformat_help'] = 'This is the format of the date that will be displayed';
|
|
$string['dateitem'] = 'Date item';
|
|
$string['dateitem_help'] = 'This will be the date that is printed on the certificate';
|
|
$string['issueddate'] = 'Issued date';
|
|
$string['pluginname'] = 'Date';
|
|
$string['numbersuffix_nd_as_in_second'] = 'nd';
|
|
$string['numbersuffix_rd_as_in_third'] = 'rd';
|
|
$string['numbersuffix_st_as_in_first'] = 'st';
|
|
$string['userdateformat'] = 'User date format';
|