improved spelling
This commit is contained in:
@@ -194,7 +194,7 @@ class restore_gradebook_structure_step extends restore_structure_step {
|
||||
if ($data->itemtype=='course' && !empty($coursecategory)) {
|
||||
$data->iteminstance = $coursecategory->id;
|
||||
}
|
||||
|
||||
|
||||
$newitemid = $DB->insert_record('grade_items', $data);
|
||||
}
|
||||
$this->set_mapping('grade_item', $oldid, $newitemid);
|
||||
@@ -310,7 +310,7 @@ class restore_gradebook_structure_step extends restore_structure_step {
|
||||
'courseid' => $this->get_courseid()
|
||||
);
|
||||
$grade_category = new stdclass();
|
||||
|
||||
|
||||
$rs = $DB->get_recordset('grade_categories', $conditions);
|
||||
if (!empty($rs)) {
|
||||
//get all the parents correct first as grade_category::build_path() loads category parents from the DB
|
||||
@@ -1372,7 +1372,7 @@ class restore_course_completion_structure_step extends restore_structure_step {
|
||||
|
||||
// This may be empty if criteria could not be restored
|
||||
$data->criteriaid = $this->get_mappingid('course_completion_criteria', $data->criteriaid);
|
||||
|
||||
|
||||
$data->course = $this->get_courseid();
|
||||
$data->userid = $this->get_mappingid('user', $data->userid);
|
||||
|
||||
@@ -1915,7 +1915,7 @@ abstract class restore_activity_structure_step extends restore_structure_step {
|
||||
}
|
||||
|
||||
/**
|
||||
* This must be invoked inmediately after creating the "module" activity record (forum, choice...)
|
||||
* This must be invoked immediately after creating the "module" activity record (forum, choice...)
|
||||
* and will adjust the new activity id (the instance) in various places
|
||||
*/
|
||||
protected function apply_activity_instance($newitemid) {
|
||||
|
||||
@@ -260,7 +260,7 @@ function enrol_category_sync_full() {
|
||||
$params['courselevel'] = CONTEXT_COURSE;
|
||||
$params['catlevel'] = CONTEXT_COURSECAT;
|
||||
|
||||
// first of all add necessay enrol instances to all courses
|
||||
// first of all add necessary enrol instances to all courses
|
||||
$parentcat = $DB->sql_concat("cat.path", "'/%'");
|
||||
$sql = "SELECT DISTINCT c.*
|
||||
FROM {course} c
|
||||
|
||||
+1
-1
@@ -829,7 +829,7 @@ class enrol_ldap_plugin extends enrol_plugin {
|
||||
$objectclass = ldap_get_values($ldapconnection, $entry, 'objectClass');
|
||||
|
||||
if (!in_array('group', $objectclass)) {
|
||||
// Not a group, so return inmediately.
|
||||
// Not a group, so return immediately.
|
||||
return array($group);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function assignment_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class restore_chat_activity_structure_step extends restore_activity_structure_st
|
||||
|
||||
// insert the chat record
|
||||
$newitemid = $DB->insert_record('chat', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function chat_restore_logs($restore,$log) {
|
||||
$status = false;
|
||||
|
||||
@@ -59,7 +59,7 @@ class restore_choice_activity_structure_step extends restore_activity_structure_
|
||||
|
||||
// insert the choice record
|
||||
$newitemid = $DB->insert_record('choice', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ function xmldb_choice_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2009042000) {
|
||||
|
||||
/// Rename field text on table choice to NEWNAMEGOESHERE
|
||||
/// Rename field text on table choice to text
|
||||
$table = new xmldb_table('choice');
|
||||
$field = new xmldb_field('text', XMLDB_TYPE_TEXT, 'small', null, XMLDB_NOTNULL, null, null, 'name');
|
||||
|
||||
@@ -42,7 +42,7 @@ function xmldb_choice_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2009042001) {
|
||||
|
||||
/// Rename field format on table choice to NEWNAMEGOESHERE
|
||||
/// Rename field format on table choice to format
|
||||
$table = new xmldb_table('choice');
|
||||
$field = new xmldb_field('format', XMLDB_TYPE_INTEGER, '4', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '0', 'intro');
|
||||
|
||||
|
||||
+4
-2
@@ -70,6 +70,7 @@ $CHOICE_DISPLAY = array (CHOICE_DISPLAY_HORIZONTAL => get_string('displayhoriz
|
||||
function choice_user_outline($course, $user, $mod, $choice) {
|
||||
global $DB;
|
||||
if ($answer = $DB->get_record('choice_answers', array('choiceid' => $choice->id, 'userid' => $user->id))) {
|
||||
$result = new object();
|
||||
$result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'";
|
||||
$result->time = $answer->timemodified;
|
||||
return $result;
|
||||
@@ -88,6 +89,7 @@ function choice_user_outline($course, $user, $mod, $choice) {
|
||||
function choice_user_complete($course, $user, $mod, $choice) {
|
||||
global $DB;
|
||||
if ($answer = $DB->get_record('choice_answers', array("choiceid" => $choice->id, "userid" => $user->id))) {
|
||||
$result = new object();
|
||||
$result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'";
|
||||
$result->time = $answer->timemodified;
|
||||
echo get_string("answered", "choice").": $result->info. ".get_string("updated", '', userdate($result->time));
|
||||
@@ -415,7 +417,7 @@ function prepare_choice_show_results($choice, $course, $cm, $allresponses, $forc
|
||||
if ($choice->showunanswered) {
|
||||
echo "<td class=\"col$count data\" >";
|
||||
// added empty row so that when the next iteration is empty,
|
||||
// we do not get <table></table> erro from w3c validator
|
||||
// we do not get <table></table> error from w3c validator
|
||||
// MDL-7861
|
||||
echo "<table class=\"choiceresponse\"><tr><td></td></tr>";
|
||||
if (!empty($allresponses[0])) {
|
||||
@@ -437,7 +439,7 @@ function prepare_choice_show_results($choice, $course, $cm, $allresponses, $forc
|
||||
echo '<td class="col'.$count.' data" >';
|
||||
|
||||
// added empty row so that when the next iteration is empty,
|
||||
// we do not get <table></table> erro from w3c validator
|
||||
// we do not get <table></table> error from w3c validator
|
||||
// MDL-7861
|
||||
echo '<table class="choiceresponse"><tr><td></td></tr>';
|
||||
if (isset($allresponses[$optionid])) {
|
||||
|
||||
+58
-58
@@ -41,21 +41,21 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
}
|
||||
$target = new moodle_url('/mod/choice/view.php');
|
||||
$attributes = array('method'=>'POST', 'target'=>$target, 'class'=> $layoutclass);
|
||||
|
||||
|
||||
$html = html_writer::start_tag('form', $attributes);
|
||||
$html .= html_writer::start_tag('ul', array('class'=>'choices' ));
|
||||
|
||||
|
||||
$availableoption = count($options['options']);
|
||||
foreach ($options['options'] as $option) {
|
||||
foreach ($options['options'] as $option) {
|
||||
$html .= html_writer::start_tag('li', array('class'=>'option'));
|
||||
$option->attributes->name = 'answer';
|
||||
$option->attributes->type = 'radio';
|
||||
|
||||
|
||||
$labeltext = $option->text;
|
||||
if (!empty($option->attributes->disabled)) {
|
||||
if (!empty($option->attributes->disabled)) {
|
||||
$labeltext .= ' ' . get_string('full', 'choice');
|
||||
$availableoption--;
|
||||
}
|
||||
}
|
||||
|
||||
$html .= html_writer::empty_tag('input', (array)$option->attributes);
|
||||
$html .= html_writer::tag('label', $labeltext, array('for'=>$option->attributes->name));
|
||||
@@ -67,7 +67,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'sesskey', 'value'=>sesskey()));
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$coursemoduleid));
|
||||
|
||||
if (!empty($options['hascapability']) && ($options['hascapability'])) {
|
||||
if (!empty($options['hascapability']) && ($options['hascapability'])) {
|
||||
if ($availableoption < 1) {
|
||||
$html .= html_writer::tag('label', get_string('choicefull', 'choice'));
|
||||
} else {
|
||||
@@ -81,10 +81,10 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
} else {
|
||||
$html .= html_writer::tag('label', get_string('havetologin', 'choice'));
|
||||
}
|
||||
|
||||
|
||||
$html .= html_writer::end_tag('ul');
|
||||
$html .= html_writer::end_tag('form');
|
||||
|
||||
$html .= html_writer::end_tag('form');
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
@@ -95,20 +95,20 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
* @return string
|
||||
*/
|
||||
public function display_result($choices, $forcepublish = false) {
|
||||
if (empty($forcepublish)) { //alow the publish setting to be overridden
|
||||
if (empty($forcepublish)) { //allow the publish setting to be overridden
|
||||
$forcepublish = $choices->publish;
|
||||
}
|
||||
|
||||
$displaylayout = $choices->display;
|
||||
|
||||
if ($forcepublish) { //CHOICE_PUBLISH_NAMES
|
||||
if ($forcepublish) { //CHOICE_PUBLISH_NAMES
|
||||
return $this->display_publish_name_vertical($choices);
|
||||
} else { //CHOICE_PUBLISH_ANONYMOUS';
|
||||
if ($displaylayout == DISPLAY_HORIZONTAL_LAYOUT) {
|
||||
return $this->display_publish_anonymous_horizontal($choices);
|
||||
}
|
||||
return $this->display_publish_anonymous_vertical($choices);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,16 +120,16 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
public function display_publish_name_vertical($choices) {
|
||||
$html ='';
|
||||
$html .= html_writer::tag('h2',format_string(get_string("responses", "choice")), array('class'=>'main'));
|
||||
|
||||
|
||||
$attributes = array('method'=>'POST');
|
||||
$attributes['action'] = new moodle_url('/mod/choice/view.php');
|
||||
$attributes['id'] = 'attemptsform';
|
||||
|
||||
|
||||
if ($choices->viewresponsecapability) {
|
||||
$html .= html_writer::start_tag('form', $attributes);
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=> $choices->coursemoduleid));
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'sesskey', 'value'=> sesskey()));
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'mode', 'value'=>'overview'));
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'mode', 'value'=>'overview'));
|
||||
}
|
||||
|
||||
$table = new html_table();
|
||||
@@ -144,7 +144,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
|
||||
$columns = array();
|
||||
foreach ($choices->options as $optionid => $options) {
|
||||
$coldata = '';
|
||||
$coldata = '';
|
||||
if ($choices->showunanswered && $optionid == 0) {
|
||||
$coldata .= html_writer::tag('div', format_string(get_string('notanswered', 'choice')), array('class'=>'option'));
|
||||
} else if ($optionid > 0) {
|
||||
@@ -152,13 +152,13 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
}
|
||||
$numberofuser = 0;
|
||||
if (!empty($options->user) && count($options->user) > 0) {
|
||||
$numberofuser = count($options->user);
|
||||
}
|
||||
|
||||
$coldata .= html_writer::tag('div', ' ('.$numberofuser. ')', array('class'=>'numberofuser', 'title' => get_string('numberofuser', 'choice')));
|
||||
$numberofuser = count($options->user);
|
||||
}
|
||||
|
||||
$coldata .= html_writer::tag('div', ' ('.$numberofuser. ')', array('class'=>'numberofuser', 'title' => get_string('numberofuser', 'choice')));
|
||||
$columns[] = $coldata;
|
||||
}
|
||||
|
||||
|
||||
$table->head = $columns;
|
||||
|
||||
$coldata = '';
|
||||
@@ -167,13 +167,13 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$coldata = '';
|
||||
if ($choices->showunanswered || $optionid > 0) {
|
||||
if (!empty($options->user)) {
|
||||
foreach ($options->user as $user) {
|
||||
foreach ($options->user as $user) {
|
||||
$data = '';
|
||||
if (empty($user->imagealt)){
|
||||
$user->imagealt = '';
|
||||
}
|
||||
|
||||
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability && $optionid > 0) {
|
||||
|
||||
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability && $optionid > 0) {
|
||||
$attemptaction = html_writer::checkbox('attemptid[]', $user->id,'');
|
||||
$data .= html_writer::tag('div', $attemptaction, array('class'=>'attemptaction'));
|
||||
}
|
||||
@@ -184,23 +184,23 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$name = html_writer::tag('a', fullname($user, $choices->fullnamecapability), array('href'=>$userlink, 'class'=>'username'));
|
||||
$data .= html_writer::tag('div', $name, array('class'=>'fullname'));
|
||||
$data .= html_writer::tag('div','', array('class'=>'clearfloat'));
|
||||
$coldata .= html_writer::tag('div', $data, array('class'=>'user'));
|
||||
}
|
||||
}
|
||||
$coldata .= html_writer::tag('div', $data, array('class'=>'user'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$columns[] = $coldata;
|
||||
$count++;
|
||||
}
|
||||
|
||||
$table->data[] = $columns;
|
||||
|
||||
$table->data[] = $columns;
|
||||
foreach ($columns as $d) {
|
||||
$table->colclasses[] = 'data';
|
||||
}
|
||||
$html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));
|
||||
|
||||
|
||||
$actiondata = '';
|
||||
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability) {
|
||||
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability) {
|
||||
$selecturl = new moodle_url('#');
|
||||
|
||||
$selectallactions = new component_action('click',"select_all_in", array('div',null,'tablecontainer'));
|
||||
@@ -212,18 +212,18 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$actiondata .= $this->output->render($deselectall);
|
||||
|
||||
$actiondata .= html_writer::tag('label', ' ' . get_string('withselected', 'quiz') . ' ', array('for'=>'menuaction'));
|
||||
|
||||
|
||||
$actionurl = new moodle_url('/mod/choice/view.php', array('sesskey'=>sesskey(), 'action'=>'delete_confirmation()'));
|
||||
$select = new single_select($actionurl, 'action', array('delete'=>get_string('delete')), null, array(''=>get_string('moveselectedusersto', 'choice')), 'attemptsform');
|
||||
|
||||
|
||||
$actiondata .= $this->output->render($select);
|
||||
}
|
||||
$html .= html_writer::tag('div', $actiondata, array('class'=>'responseaction'));
|
||||
|
||||
|
||||
if ($choices->viewresponsecapability) {
|
||||
$html .= html_writer::end_tag('form');
|
||||
}
|
||||
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
@@ -236,12 +236,12 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
public function display_publish_anonymous_vertical($choices) {
|
||||
global $CHOICE_COLUMN_HEIGHT;
|
||||
|
||||
$html = '';
|
||||
$html = '';
|
||||
$table = new html_table();
|
||||
$table->cellpadding = 5;
|
||||
$table->cellspacing = 0;
|
||||
$table->attributes['class'] = 'results anonymous ';
|
||||
$table->data = array();
|
||||
$table->cellspacing = 0;
|
||||
$table->attributes['class'] = 'results anonymous ';
|
||||
$table->data = array();
|
||||
$count = 0;
|
||||
ksort($choices->options);
|
||||
$columns = array();
|
||||
@@ -269,7 +269,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$rowgraph = new html_table_row();
|
||||
$rowgraph->cells = $columns;
|
||||
$rows[] = $rowgraph;
|
||||
|
||||
|
||||
$columns = array();
|
||||
$printskiplink = true;
|
||||
foreach ($choices->options as $optionid => $options) {
|
||||
@@ -277,40 +277,40 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$numberofuser = 0;
|
||||
if (!empty($options->user)) {
|
||||
$numberofuser = count($options->user);
|
||||
}
|
||||
}
|
||||
|
||||
if ($printskiplink) {
|
||||
$columndata .= html_writer::tag('div', '', array('class'=>'skip-block-to', 'id'=>'skipresultgraph'));
|
||||
$printskiplink = false;
|
||||
}
|
||||
|
||||
|
||||
if ($choices->showunanswered && $optionid == 0) {
|
||||
$columndata .= html_writer::tag('div', format_string(get_string('notanswered', 'choice')), array('class'=>'option'));
|
||||
} else if ($optionid > 0) {
|
||||
$columndata .= html_writer::tag('div', format_string($choices->options[$optionid]->text), array('class'=>'option'));
|
||||
}
|
||||
$columndata .= html_writer::tag('div', ' ('.$numberofuser.')', array('class'=>'numberofuser', 'title'=> get_string('numberofuser', 'choice')));
|
||||
|
||||
|
||||
if($choices->numberofuser > 0) {
|
||||
$percentageamount = ((float)$numberofuser/(float)$choices->numberofuser)*100.0;
|
||||
}
|
||||
$columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));
|
||||
|
||||
|
||||
$cell = new html_table_cell();
|
||||
$cell->text = $columndata;
|
||||
$cell->attributes = array('class'=>'data header');
|
||||
$columns[] = $cell;
|
||||
$columns[] = $cell;
|
||||
}
|
||||
$rowdata = new html_table_row();
|
||||
$rowdata->cells = $columns;
|
||||
$rows[] = $rowdata;
|
||||
|
||||
$table->data = $rows;
|
||||
|
||||
|
||||
$header = html_writer::tag('h2',format_string(get_string("responses", "choice")));
|
||||
$html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
|
||||
$html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));
|
||||
$html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));
|
||||
$html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));
|
||||
$html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));
|
||||
|
||||
return $html;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
*/
|
||||
public function display_publish_anonymous_horizontal($choices) {
|
||||
global $CHOICE_COLUMN_WIDTH;
|
||||
|
||||
|
||||
$table = new html_table();
|
||||
$table->cellpadding = 5;
|
||||
$table->cellspacing = 0;
|
||||
@@ -333,7 +333,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
ksort($choices->options);
|
||||
|
||||
$rows = array();
|
||||
foreach ($choices->options as $optionid => $options) {
|
||||
foreach ($choices->options as $optionid => $options) {
|
||||
$numberofuser = 0;
|
||||
$graphcell = new html_table_cell();
|
||||
if (!empty($options->user)) {
|
||||
@@ -351,7 +351,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
|
||||
$skiplink = html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph'. $optionid, 'class'=>'skip-block'));
|
||||
$skiphandler = html_writer::tag('span', '', array('class'=>'skip-block-to', 'id'=>'skipresultgraph'.$optionid));
|
||||
|
||||
|
||||
$graphcell->text = $skiplink . $displaydiagram . $skiphandler;
|
||||
$graphcell->attributes = array('class'=>'graph horizontal');
|
||||
|
||||
@@ -366,7 +366,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
if($choices->numberofuser > 0) {
|
||||
$percentageamount = ((float)$numberofuser/(float)$choices->numberofuser)*100.0;
|
||||
}
|
||||
$columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));
|
||||
$columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));
|
||||
|
||||
$datacell->text = $columndata;
|
||||
$datacell->attributes = array('class'=>'header');
|
||||
@@ -375,14 +375,14 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
$row->cells = array($datacell, $graphcell);
|
||||
$rows[] = $row;
|
||||
}
|
||||
|
||||
|
||||
$table->data = $rows;
|
||||
|
||||
|
||||
$html = '';
|
||||
$header = html_writer::tag('h2',format_string(get_string("responses", "choice")));
|
||||
$html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
|
||||
$html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
|
||||
$html .= html_writer::table($table);
|
||||
|
||||
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function choice_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
#page-mod-choice-report .downloadreport ul li {list-style:none;padding: 0 20px; display: inline;float: left; }
|
||||
.path-mod-choice .clearfloat {float:none; clear:both;}
|
||||
|
||||
/**
|
||||
* Overide for RTL layout
|
||||
/**
|
||||
* Override for RTL layout
|
||||
*/
|
||||
.path-mod-choice.dir-rtl .horizontal .choices .option {padding-right:0px; padding-left: 20px; float:right;}
|
||||
.path-mod-choice.dir-rtl .results.anonymous .graph.horizontal {text-align: right;}
|
||||
|
||||
@@ -61,7 +61,7 @@ class restore_feedback_activity_structure_step extends restore_activity_structur
|
||||
|
||||
// insert the feedback record
|
||||
$newitemid = $DB->insert_record('feedback', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ class restore_feedback_activity_structure_step extends restore_activity_structur
|
||||
$data = (object)$data;
|
||||
$oldid = $data->id;
|
||||
$data->feedback = $this->get_new_parentid('feedback');
|
||||
|
||||
|
||||
//dependitem
|
||||
$data->dependitem = $this->get_mappingid('feedback_item', $data->dependitem);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function feedback_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class restore_folder_activity_structure_step extends restore_activity_structure_
|
||||
|
||||
// insert the folder record
|
||||
$newitemid = $DB->insert_record('folder', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function forum_restore_logs($restore,$log) {
|
||||
global $DB;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function glossary_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class restore_imscp_activity_structure_step extends restore_activity_structure_s
|
||||
|
||||
// insert the imscp record
|
||||
$newitemid = $DB->insert_record('imscp', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class restore_label_activity_structure_step extends restore_activity_structure_s
|
||||
|
||||
// insert the label record
|
||||
$newitemid = $DB->insert_record('label', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ defined('MOODLE_INTERNAL') || die;
|
||||
//
|
||||
//-----------------------------------------------------------
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function label_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class restore_lesson_activity_structure_step extends restore_activity_structure_
|
||||
|
||||
// insert the lesson record
|
||||
$newitemid = $DB->insert_record('lesson', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function lesson_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class restore_page_activity_structure_step extends restore_activity_structure_st
|
||||
|
||||
// insert the page record
|
||||
$newitemid = $DB->insert_record('page', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -623,7 +623,7 @@
|
||||
return $status;
|
||||
}
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function quiz_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -1774,7 +1774,7 @@
|
||||
return $status;
|
||||
}
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function quiz_restore_pre15_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class restore_resource_activity_structure_step extends restore_activity_structur
|
||||
|
||||
// insert the resource record
|
||||
$newitemid = $DB->insert_record('resource', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class restore_scorm_activity_structure_step extends restore_activity_structure_s
|
||||
|
||||
// insert the scorm record
|
||||
$newitemid = $DB->insert_record('scorm', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function scorm_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class restore_survey_activity_structure_step extends restore_activity_structure_
|
||||
|
||||
// insert the survey record
|
||||
$newitemid = $DB->insert_record('survey', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//This function returns a log record with all the necessay transformations
|
||||
//This function returns a log record with all the necessary transformations
|
||||
//done. It's used by restore_log_module() to restore modules log.
|
||||
function survey_restore_logs($restore,$log) {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class restore_url_activity_structure_step extends restore_activity_structure_ste
|
||||
|
||||
// insert the url record
|
||||
$newitemid = $DB->insert_record('url', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class restore_wiki_activity_structure_step extends restore_activity_structure_st
|
||||
|
||||
// insert the wiki record
|
||||
$newitemid = $DB->insert_record('wiki', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ class restore_workshop_activity_structure_step extends restore_activity_structur
|
||||
|
||||
// insert the workshop record
|
||||
$newitemid = $DB->insert_record('workshop', $data);
|
||||
// inmediately after inserting "activity" record, call this
|
||||
// immediately after inserting "activity" record, call this
|
||||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user