Corrected PHPDocs for the grade element
This commit is contained in:
parent
2b4bbbe820
commit
46c0877905
2 changed files with 6 additions and 3 deletions
|
@ -44,7 +44,6 @@ class customcert_element_grade extends customcert_element_base {
|
|||
* This function renders the form elements when adding a customcert element.
|
||||
*
|
||||
* @param stdClass $mform the edit_form instance.
|
||||
* @return array the form elements
|
||||
*/
|
||||
public function render_form_elements($mform) {
|
||||
// The identifier.
|
||||
|
@ -79,9 +78,9 @@ class customcert_element_grade extends customcert_element_base {
|
|||
* customcert column.
|
||||
*
|
||||
* @param stdClass $data the form data.
|
||||
* @return string the json encoded array
|
||||
*/
|
||||
public function save_unique_data($data) {
|
||||
|
||||
// The identifier.
|
||||
$id = $this->element->id;
|
||||
|
||||
|
@ -116,6 +115,8 @@ class customcert_element_grade extends customcert_element_base {
|
|||
|
||||
/**
|
||||
* Helper function to return all the grades items for this course.
|
||||
*
|
||||
* @return array the array of gradeable items in the course
|
||||
*/
|
||||
public function get_grade_items() {
|
||||
global $COURSE, $DB;
|
||||
|
@ -174,6 +175,8 @@ class customcert_element_grade extends customcert_element_base {
|
|||
|
||||
/**
|
||||
* Helper function to return all the possible grade formats.
|
||||
*
|
||||
* @return array returns an array of grade formats
|
||||
*/
|
||||
function get_grade_format_options() {
|
||||
$gradeformat = array();
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2013022901;
|
||||
$plugin->version = 2013031300;
|
||||
$plugin->requires = 2012112900;
|
||||
$plugin->component = 'customcertelement_grade';
|
||||
|
|
Loading…
Reference in a new issue