mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
fixed silly comment typos
This commit is contained in:
parent
4c8725be66
commit
f7d515b6d3
@ -47,7 +47,7 @@ define('GRADE_UPDATE_MULTIPLE', 2);
|
||||
define('GRADE_UPDATE_ITEM_DELETED', 3);
|
||||
define('GRADE_UPDATE_ITEM_LOCKED', 4);
|
||||
|
||||
// Grate teables history tracking actions
|
||||
// Grade tables history tracking actions
|
||||
define('GRADE_HISTORY_INSERT', 1);
|
||||
define('GRADE_HISTORY_UPDATE', 2);
|
||||
define('GRADE_HISTORY_DELETE', 3);
|
||||
|
@ -675,7 +675,7 @@ class grade_category extends grade_object {
|
||||
arsort($freq); // sort by frequency keeping keys
|
||||
$top = reset($freq); // highest frequency count
|
||||
$modes = array_keys($freq, $top); // search for all modes (have the same highest count)
|
||||
rsort($modes, SORT_NUMERIC); // get highes mode
|
||||
rsort($modes, SORT_NUMERIC); // get highest mode
|
||||
$agg_grade = reset($modes);
|
||||
break;
|
||||
|
||||
@ -702,7 +702,7 @@ class grade_category extends grade_object {
|
||||
|
||||
case GRADE_AGGREGATE_WEIGHTED_MEAN2:
|
||||
// Weighted average of all existing final grades with optional extra credit flag,
|
||||
// weight is the range of grade (ususally grademax)
|
||||
// weight is the range of grade (usually grademax)
|
||||
$weightsum = 0;
|
||||
$sum = null;
|
||||
|
||||
@ -929,9 +929,9 @@ class grade_category extends grade_object {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if category uses special aggregation coeficient
|
||||
* Returns true if category uses special aggregation coefficient
|
||||
*
|
||||
* @return boolean true if coeficient used
|
||||
* @return boolean true if coefficient used
|
||||
*/
|
||||
public function is_aggregationcoef_used() {
|
||||
return ($this->aggregation == GRADE_AGGREGATE_WEIGHTED_MEAN
|
||||
|
@ -342,7 +342,7 @@ class grade_grade extends grade_object {
|
||||
* @param int $locked 0, 1 or a timestamp int(10) after which date the item will be locked.
|
||||
* @param boolean $cascade ignored param
|
||||
* @param boolean $refresh refresh grades when unlocking
|
||||
* @return boolean true if sucessful, false if can not set new lock state for grade
|
||||
* @return boolean true if successful, false if can not set new lock state for grade
|
||||
*/
|
||||
public function set_locked($lockedstate, $cascade=false, $refresh=true) {
|
||||
$this->load_grade_item();
|
||||
@ -512,7 +512,7 @@ class grade_grade extends grade_object {
|
||||
* @static
|
||||
*
|
||||
* @param array $params associative arrays varname=>value
|
||||
* @return array array of grade_grade insatnces or false if none found.
|
||||
* @return array array of grade_grade instances or false if none found.
|
||||
*/
|
||||
public static function fetch_all($params) {
|
||||
return grade_object::fetch_all_helper('grade_grades', 'grade_grade', $params);
|
||||
|
@ -886,7 +886,7 @@ class grade_item extends grade_object {
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this a manualy graded item?
|
||||
* Is this a manually graded item?
|
||||
* @return boolean
|
||||
*/
|
||||
public function is_manual_item() {
|
||||
@ -1256,7 +1256,7 @@ class grade_item extends grade_object {
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds out on which other items does this depend directly when doing calculation or category agregation
|
||||
* Finds out on which other items does this depend directly when doing calculation or category aggregation
|
||||
* @param bool $reset_cache
|
||||
* @return array of grade_item ids this one depends on
|
||||
*/
|
||||
@ -1513,7 +1513,7 @@ class grade_item extends grade_object {
|
||||
* @param int $usermodified - user which did the grading
|
||||
* @param int $dategraded
|
||||
* @param int $datesubmitted
|
||||
* @param object $grade object - usefull for bulk upgrades
|
||||
* @param object $grade object - useful for bulk upgrades
|
||||
* @return boolean success
|
||||
*/
|
||||
public function update_raw_grade($userid, $rawgrade=false, $source=NULL, $feedback=false, $feedbackformat=FORMAT_MOODLE, $usermodified=null, $dategraded=null, $datesubmitted=null, $grade=null) {
|
||||
|
@ -125,7 +125,7 @@ abstract class grade_object {
|
||||
* @static abstract
|
||||
*
|
||||
* @param array $params associative arrays varname=>value
|
||||
* @return array array of grade_object insatnces or false if none found.
|
||||
* @return array array of grade_object instances or false if none found.
|
||||
*/
|
||||
public static abstract function fetch_all($params);
|
||||
|
||||
|
@ -63,7 +63,7 @@ class grade_scale extends grade_object {
|
||||
public $scale_items = array();
|
||||
|
||||
/**
|
||||
* A string representatin of the scale items (a comma-separated list).
|
||||
* A string representation of the scale items (a comma-separated list).
|
||||
* @var string $scale
|
||||
*/
|
||||
public $scale;
|
||||
@ -90,7 +90,7 @@ class grade_scale extends grade_object {
|
||||
* @static
|
||||
*
|
||||
* @param array $params associative arrays varname=>value
|
||||
* @return array array of grade_scale insatnces or false if none found.
|
||||
* @return array array of grade_scale instances or false if none found.
|
||||
*/
|
||||
public static function fetch_all($params) {
|
||||
return grade_object::fetch_all_helper('scale', 'grade_scale', $params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user