Skip to content

Commit

Permalink
a few spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 18, 2010
1 parent d9504e4 commit 91421f3
Show file tree
Hide file tree
Showing 17 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ function message_search_users($courseid, $searchtext, $sort='', $exceptions='')
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$contextlists = get_related_contexts_string($context);

// everyone who has a role assignement in this course or higher
// everyone who has a role assignment in this course or higher
$params = array($USER->id, "%$searchtext%");
$users = $DB->get_records_sql("SELECT $ufields,
FROM {user} u, mc.id as contactlistid, mc.blocked
Expand Down
4 changes: 2 additions & 2 deletions mod/assignment/backup/moodle2/restore_assignment_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function process_assignment($data) {

// insert the assignment record
$newitemid = $DB->insert_record('assignment', $data);
// inmediately after inserting "activity" record, call this
// immediately after inserting "activity" record, call this
$this->apply_activity_instance($newitemid);
}

Expand All @@ -95,7 +95,7 @@ protected function process_assignment_submission($data) {
protected function after_execute() {
// Add assignment related files, no need to match by itemname (just internally handled context)
$this->add_related_files('mod_assignment', 'intro', null);
// Add assignment submission files, maching by assignment_submission itemname
// Add assignment submission files, matching by assignment_submission itemname
$this->add_related_files('mod_assignment', 'submission', 'assignment_submission');
$this->add_related_files('mod_assignment', 'online_submission', 'assignment_submission'); // Until MDL-23683 gets decided/implemented
$this->add_related_files('mod_assignment', 'response', 'assignment_submission');
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
print_error('invalidcoursemodule');
}
if (! $course = $DB->get_record('course', array('id'=>$assignment->course))) {
print_error('coursemisconf', 'assignement');
print_error('coursemisconf', 'assignment');
}
if (! $cm = get_coursemodule_from_instance('assignment', $assignment->id, $course->id)) {
print_error('invalidcoursemodule');
Expand Down
20 changes: 10 additions & 10 deletions mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function view_feedback($submission=NULL) {
}
// Check the user can submit
$cansubmit = has_capability('mod/assignment:submit', $this->context, $USER->id, false);
// If not then check if ther user still has the view cap and has a previous submission
// If not then check if the user still has the view cap and has a previous submission
$cansubmit = $cansubmit || (!empty($submission) && has_capability('mod/assignment:view', $this->context, $USER->id, false));

if (!$cansubmit) {
Expand Down Expand Up @@ -716,7 +716,7 @@ function submissions($mode) {
$DB->update_record('assignment_submissions', $submission);
}

// triger grade event
// trigger grade event
$this->update_grade($submission);

//add to log only if updating
Expand Down Expand Up @@ -2024,7 +2024,7 @@ function custom_feedbackform($submission, $return=false) {
* when printing this activity in a course listing. See get_array_of_activities() in course/lib.php.
*
* @param $coursemodule object The coursemodule object (record).
* @return object An object on information that the coures will know about (most noticeably, an icon).
* @return object An object on information that the courses will know about (most noticeably, an icon).
*
*/
function get_coursemodule_info($coursemodule) {
Expand Down Expand Up @@ -3207,7 +3207,7 @@ function assignment_get_unmailed_submissions($starttime, $endtime) {
/**
* Counts all real assignment submissions by ENROLLED students (not empty ones)
*
* There are also assignment type methods count_real_submissions() wich in the default
* There are also assignment type methods count_real_submissions() which in the default
* implementation simply call this function.
* @param $groupid int optional If nonzero then count is restricted to this group
* @return int The number of submissions
Expand Down Expand Up @@ -3264,7 +3264,7 @@ function assignment_get_all_submissions($assignment, $sort="", $dir="DESC") {
$sort = "a.$sort $dir";
}

/* not sure this is needed at all since assignmenet already has a course define, so this join?
/* not sure this is needed at all since assignment already has a course define, so this join?
$select = "s.course = '$assignment->course' AND";
if ($assignment->course == SITEID) {
$select = '';
Expand All @@ -3286,7 +3286,7 @@ function assignment_get_all_submissions($assignment, $sort="", $dir="DESC") {
* when printing this activity in a course listing. See get_array_of_activities() in course/lib.php.
*
* @param $coursemodule object The coursemodule object (record).
* @return object An object on information that the coures will know about (most noticeably, an icon).
* @return object An object on information that the courses will know about (most noticeably, an icon).
*
*/
function assignment_get_coursemodule_info($coursemodule) {
Expand Down Expand Up @@ -3371,7 +3371,7 @@ function assignment_print_overview($courses, &$htmlarray) {
}

if (empty($assignmentids)){
// no assigments to look at - we're done
// no assignments to look at - we're done
return true;
}

Expand All @@ -3389,8 +3389,8 @@ function assignment_print_overview($courses, &$htmlarray) {
//
list($sqlassignmentids, $assignmentidparams) = $DB->get_in_or_equal($assignmentids);

// build up and array of unmarked submissions indexed by assigment id/ userid
// for use where the user has grading rights on assigment
// build up and array of unmarked submissions indexed by assignment id/ userid
// for use where the user has grading rights on assignment
$rs = $DB->get_recordset_sql("SELECT id, assignment, userid
FROM {assignment_submissions}
WHERE teacher = 0 AND timemarked = 0
Expand All @@ -3403,7 +3403,7 @@ function assignment_print_overview($courses, &$htmlarray) {
$rs->close();


// get all user submissions, indexed by assigment id
// get all user submissions, indexed by assignment id
$mysubmissions = $DB->get_records_sql("SELECT assignment, timemarked, teacher, grade
FROM {assignment_submissions}
WHERE userid = ? AND
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/type/offline/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function process_feedback() {

$DB->update_record('assignment_submissions', $submission);

// triger grade event
// trigger grade event
$this->update_grade($submission);

add_to_log($this->course->id, 'assignment', 'update grades',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ protected function define_assignment_subplugin_structure() {
* being 'offline' (that will be checked on execution)
*
* Note that, while, we allow direct "injection" of final_elements at the "assignment" level (without
* any nesting, we ususally pass 'null', and later enclose the real subplugin information into deeper
* any nesting, we usually pass 'null', and later enclose the real subplugin information into deeper
* levels (get_recommended_name() and 'config' in the example below). That will make things
* on restore easier, as far as subplugin information will be clearly separted from module information.
* on restore easier, as far as subplugin information will be clearly separated from module information.
*/
$subplugin = $this->get_subplugin_element(null, '/assignment/assignmenttype', 'offline');

/**
* Here we define the real structure the subplugin is going to generate - see note above. Obviously the
* example below hasn't sense at all, we are exporting the whole config table that is 100% unrelated
* with assignments. Take it as just one example. The only important bit is that it's highly recommened to
* with assignments. Take it as just one example. The only important bit is that it's highly recommended to
* use some exclusive name in the main nested element (something that won't conflict with other subplugins/parts).
* So we are using 'subplugin_assignment_offline_assignment' as name here (the type of the subplugin, the name of the
* subplugin and the name of the connection point). get_recommended_name() will help, in any case ;-)
Expand Down Expand Up @@ -98,7 +98,7 @@ protected function define_submission_subplugin_structure() {

// type of the subplugin, name of the subplugin and name of the connection point (recommended)
$asssuboff = new backup_nested_element($this->get_recommended_name());
// Why 'submission_config' name? Because it must be unique in the hierharchy and we
// Why 'submission_config' name? Because it must be unique in the hierarchy and we
// already are using 'config' above withing the same file
$config = new backup_nested_element('submission_config', null, array('name', 'value'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* Note: Offline assignments really haven't any special subplugin
* information to backup/restore, hence code below is skipped (return false)
* but it's a good example of sublugins supported at different
* but it's a good example of subplugins supported at different
* elements (assignment and submission)
*/
class restore_assignment_offline_subplugin extends restore_subplugin {
Expand Down Expand Up @@ -66,7 +66,7 @@ protected function define_submission_subplugin_structure() {
}

/**
* This method processes the config element inside one offline assignement (see offline subplugin backup)
* This method processes the config element inside one offline assignment (see offline subplugin backup)
*/
public function process_assignment_offline_config($data) {
$data = (object)$data;
Expand All @@ -86,7 +86,7 @@ public function process_assignment_offline_config($data) {
}

/**
* This method processes the submission_config element inside one offline assignement (see offline subplugin backup)
* This method processes the submission_config element inside one offline assignment (see offline subplugin backup)
*/
public function process_assignment_offline_submission_config($data) {
$data = (object)$data;
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
print_error('invalidid', 'assignment');
}
if (! $cm = get_coursemodule_from_instance("assignment", $assignment->id, $course->id)) {
print_error('invalidcoursemodule', 'assignement');
print_error('invalidcoursemodule', 'assignment');
}
$url->param('a', $a);
}
Expand Down
2 changes: 1 addition & 1 deletion mod/chat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ function chat_reset_course_form_defaults($course) {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* chat messages for course $data->courseid.
*
* @global object
Expand Down
2 changes: 1 addition & 1 deletion mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ function choice_reset_course_form_defaults($course) {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* choice responses for course $data->courseid.
*
* @global object
Expand Down
2 changes: 1 addition & 1 deletion mod/data/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ function data_reset_gradebook($courseid, $type='') {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* data responses for course $data->courseid.
*
* @global object
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ function glossary_reset_gradebook($courseid, $type='') {
}
}
/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* glossary responses for course $data->courseid.
*
* @global object
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ function lesson_reset_gradebook($courseid, $type='') {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* lesson attempts for course $data->courseid.
*
* @global stdClass
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ function quiz_reset_gradebook($courseid, $type='') {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* quiz attempts for course $data->courseid, if $data->reset_quiz_attempts is
* set and true.
*
Expand Down
6 changes: 3 additions & 3 deletions mod/scorm/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ function scorm_reset_gradebook($courseid, $type='') {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* scorm attempts for course $data->courseid.
*
* @global stdClass
Expand Down Expand Up @@ -949,7 +949,7 @@ function scorm_extend_navigation($navigation, $course, $module, $cm) {
*
* @param string $type - type of log(aicc,scorm12,scorm13) used as prefix for filename
* @param integer $scoid - scoid of object this log entry is for
* @return string The filename as an absolute path
* @return string The filename as an absolute path
*/
function scorm_debug_log_filename($type, $scoid) {
global $CFG, $USER;
Expand Down Expand Up @@ -1030,7 +1030,7 @@ function scorm_print_overview($courses, &$htmlarray) {
}

if(empty($scormids)){
// no assigments to look at - we're done
// no scorms to look at - we're done
return true;
}
$strscorm = get_string('modulename', 'scorm');
Expand Down
12 changes: 6 additions & 6 deletions mod/survey/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,10 @@ function survey_print_multi($question) {
$hiddentext = get_accesshide($options[$i-1]);
$id = "q$P" . $q->id . "_$i";
echo "<td><label for=\"$id\"><input type=\"radio\" name=\"q$P$q->id\" id=\"$id\" value=\"$i\" />$hiddentext</label></td>";
}
$checklist["q$P$q->id"] = 0;
}
$checklist["q$P$q->id"] = 0;

} else {
} else {
// yu : fix for MDL-7501, possibly need to use user flag as this is quite ugly.
echo "<th scope=\"row\" class=\"optioncell\">";
echo "<b class=\"qnumtopcell\">$qnum</b> &nbsp; ";
Expand All @@ -612,13 +612,13 @@ function survey_print_multi($question) {

$default = get_accesshide($strdefault);
echo '<td class="whitecell"><label for="q'. $q->id .'"><input type="radio" name="q'.$q->id. '" id="q'. $q->id .'" value="0" checked="checked" />'.$default.'</label></td>';

for ($i=1;$i<=$numoptions;$i++) {
$hiddentext = get_accesshide($options[$i-1]);
$id = "q" . $q->id . "_$i";
echo "<td><label for=\"$id\"><input type=\"radio\" name=\"q$q->id\" id=\"$id\" value=\"$i\" />$hiddentext</label></td>";
}

$checklist["qP$q->id"] = 0;
$checklist["q$q->id"] = 0;
}
Expand Down Expand Up @@ -740,7 +740,7 @@ function survey_reset_course_form_defaults($course) {
}

/**
* Actual implementation of the rest coures functionality, delete all the
* Actual implementation of the reset courses functionality, delete all the
* survey responses for course $data->courseid.
*
* @global object
Expand Down
Loading

0 comments on commit 91421f3

Please sign in to comment.