Corrected PHPDocs for the grade element

This commit is contained in:
Mark Nelson 2013-03-13 18:04:19 -07:00
parent 2b4bbbe820
commit 46c0877905
2 changed files with 6 additions and 3 deletions

View file

@ -44,7 +44,6 @@ class customcert_element_grade extends customcert_element_base {
* This function renders the form elements when adding a customcert element. * This function renders the form elements when adding a customcert element.
* *
* @param stdClass $mform the edit_form instance. * @param stdClass $mform the edit_form instance.
* @return array the form elements
*/ */
public function render_form_elements($mform) { public function render_form_elements($mform) {
// The identifier. // The identifier.
@ -79,9 +78,9 @@ class customcert_element_grade extends customcert_element_base {
* customcert column. * customcert column.
* *
* @param stdClass $data the form data. * @param stdClass $data the form data.
* @return string the json encoded array
*/ */
public function save_unique_data($data) { public function save_unique_data($data) {
// The identifier. // The identifier.
$id = $this->element->id; $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. * 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() { public function get_grade_items() {
global $COURSE, $DB; global $COURSE, $DB;
@ -174,6 +175,8 @@ class customcert_element_grade extends customcert_element_base {
/** /**
* Helper function to return all the possible grade formats. * Helper function to return all the possible grade formats.
*
* @return array returns an array of grade formats
*/ */
function get_grade_format_options() { function get_grade_format_options() {
$gradeformat = array(); $gradeformat = array();

View file

@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013022901; $plugin->version = 2013031300;
$plugin->requires = 2012112900; $plugin->requires = 2012112900;
$plugin->component = 'customcertelement_grade'; $plugin->component = 'customcertelement_grade';