mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-10829 Added get_idnumber() for both category and item classes
This commit is contained in:
parent
681666abe7
commit
be7c069360
@ -939,6 +939,16 @@ class grade_category extends grade_object {
|
|||||||
return $this->grade_item->get_sortorder();
|
return $this->grade_item->get_sortorder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the idnumber of the associated grade_item. This method is also available in
|
||||||
|
* grade_item, for cases where the object type is not known.
|
||||||
|
* @return string idnumber
|
||||||
|
*/
|
||||||
|
function get_idnumber() {
|
||||||
|
$this->load_grade_item();
|
||||||
|
return $this->grade_item->get_idnumber();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets sortorder variable for this category.
|
* Sets sortorder variable for this category.
|
||||||
* This method is also available in grade_item, for cases where the object type is not know.
|
* This method is also available in grade_item, for cases where the object type is not know.
|
||||||
|
@ -1018,6 +1018,15 @@ class grade_item extends grade_object {
|
|||||||
return $this->sortorder;
|
return $this->sortorder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the idnumber of this grade_item. This method is also available in
|
||||||
|
* grade_category, for cases where the object type is not know.
|
||||||
|
* @return string idnumber
|
||||||
|
*/
|
||||||
|
function get_idnumber() {
|
||||||
|
return $this->idnumber;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the sortorder of this grade_item. This method is also available in
|
* Sets the sortorder of this grade_item. This method is also available in
|
||||||
* grade_category, for cases where the object type is not know.
|
* grade_category, for cases where the object type is not know.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user