Browse files

MDL-26683 workshop: fixed typos in code comments

  • Loading branch information...
1 parent 48fe5c6 commit de6aaa7295ab763439a3a21b91d85a997763ce26 @mudrd8mz mudrd8mz committed Mar 4, 2011
View
6 mod/workshop/db/access.php
@@ -42,7 +42,7 @@
)
),
- // Ability to change the current phase (stage) of the workshop, it est for example
+ // Ability to change the current phase (stage) of the workshop, for example
// allow submitting, start assessment period, close workshop etc.
'mod/workshop:switchphase' => array(
'captype' => 'write',
@@ -110,7 +110,7 @@
)
),
- // Ability to publish submissions, it est make them available when workshop is closed
+ // Ability to publish submissions, i.e. make them available when workshop is closed
'mod/workshop:publishsubmissions' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
@@ -134,7 +134,7 @@
)
),
- // Ability to identify the reviewer of the given submission (ie the owner of the assessment)
+ // Ability to identify the reviewer of the given submission (i.e. the owner of the assessment)
'mod/workshop:viewreviewernames' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
View
2 mod/workshop/eval/best/lib.php
@@ -178,7 +178,7 @@ protected function process_assessments(array $assessments, array $diminfo, stdcl
$distances[$asid] = $this->assessments_distance($assessment, $average, $diminfo, $settings);
}
- // identify the best assessments - it est those with the shortest distance from the best assessment
+ // identify the best assessments - that is those with the shortest distance from the best assessment
$bestids = array_keys($distances, min($distances));
// for every assessment, calculate its distance from the nearest best assessment
View
2 mod/workshop/form/accumulative/db/upgradelib.php
@@ -63,7 +63,7 @@ function workshopform_accumulative_upgrade_legacy() {
// refetch them from DB so that this function can be called during recovery
$newelementids = workshop_upgrade_element_id_mappings('accumulative');
- // migrate all grades for these elements (it est the values that reviewers put into forms)
+ // migrate all grades for these elements (i.e. the values that reviewers put into forms)
echo $OUTPUT->notification('Copying assessment form grades', 'notifysuccess');
$sql = "SELECT *
FROM {workshop_grades_old}
View
2 mod/workshop/form/comments/db/upgradelib.php
@@ -60,7 +60,7 @@ function workshopform_comments_upgrade_legacy() {
// now we need to reload the legacy element ids
$newelementids = workshop_upgrade_element_id_mappings('comments');
- // migrate all comments for these elements (it est the values that reviewers put into forms)
+ // migrate all comments for these elements (i.e. the values that reviewers put into forms)
echo $OUTPUT->notification('Copying assessment form comments', 'notifysuccess');
$sql = "SELECT *
FROM {workshop_grades_old}
View
2 mod/workshop/form/numerrors/db/upgradelib.php
@@ -83,7 +83,7 @@ function workshopform_numerrors_upgrade_legacy() {
// refetch them from DB so that this function can be called during recovery
$newelementids = workshop_upgrade_element_id_mappings('numerrors');
- // migrate all grades for these elements (it est the values that reviewers put into forms)
+ // migrate all grades for these elements (i.e. the values that reviewers put into forms)
echo $OUTPUT->notification('Copying assessment form grades', 'notifysuccess');
$sql = "SELECT *
FROM {workshop_grades_old}
View
2 mod/workshop/form/numerrors/lib.php
@@ -556,7 +556,7 @@ protected function calculate_peer_grade(array $grades) {
if (empty($grades)) {
return null;
}
- $sumerrors = 0; // sum of the weighted errors (ie the negative responses)
+ $sumerrors = 0; // sum of the weighted errors (i.e. the negative responses)
foreach ($grades as $grade) {
if (grade_floats_different($grade->grade, 1.00000)) {
// negative reviewer's response
View
4 mod/workshop/form/rubric/db/upgradelib.php
@@ -92,7 +92,7 @@ function workshopform_rubric_upgrade_legacy_criterion() {
// reload the mappings - this must be reloaded to that we can run this during recovery
$newelementids = workshop_upgrade_element_id_mappings('rubric_levels');
- // migrate all grades for these elements (it est the values that reviewers put into forms)
+ // migrate all grades for these elements (i.e. the values that reviewers put into forms)
echo $OUTPUT->notification('Copying criterion assessment form grades', 'notifysuccess');
$sql = "SELECT *
FROM {workshop_grades_old}
@@ -199,7 +199,7 @@ function workshopform_rubric_upgrade_legacy_rubric() {
unset($oldweights);
unset($element);
- // migrate all grades for these elements (it est the values that reviewers put into forms)
+ // migrate all grades for these elements (i.e. the values that reviewers put into forms)
echo $OUTPUT->notification('Copying rubric assessment form grades', 'notifysuccess');
$sql = "SELECT *
FROM {workshop_grades_old}
View
6 mod/workshop/locallib.php
@@ -458,7 +458,7 @@ public function get_grouped($users) {
}
/**
- * Returns the list of all allocations (it est assigned assessments) in the workshop
+ * Returns the list of all allocations (i.e. assigned assessments) in the workshop
*
* Assessments of example submissions are ignored
*
@@ -721,7 +721,7 @@ public function delete_submission(stdclass $submission) {
* Returns the list of all assessments in the workshop with some data added
*
* Fetches data from {workshop_assessments} and adds some useful information from other
- * tables. The returned object does not contain textual fields (ie comments) to prevent memory
+ * tables. The returned object does not contain textual fields (i.e. comments) to prevent memory
* lack issues.
*
* @return array [assessmentid] => assessment stdclass
@@ -2397,7 +2397,7 @@ public function get_examples() {
*/
abstract class workshop_submission_base {
- /** @var bool is the submission anonymous (ie contains author information) */
+ /** @var bool is the submission anonymous (i.e. contains author information) */
protected $anonymous;
/* @var array of columns from workshop_submissions that are assigned as properties */

0 comments on commit de6aaa7

Please sign in to comment.