/*$formAddAxis = new axis_form(new moodle_url('/mod/assign/feedback/editpdfplus/view_admin.php?id=' . $this->course->id, array('id' => $this->course->id))); //Form processing and displaying is done here
/*$formAddAxis = new axis_form(new moodle_url('/mod/assign/feedback/editpdfplus/view_admin.php?id=' . $this->course->id, array('id' => $this->course->id))); //Form processing and displaying is done here
if ($formAddAxis->is_cancelled()) {
if ($formAddAxis->is_cancelled()) {
//Handle form cancel operation, if cancel button is present on form
//Handle form cancel operation, if cancel button is present on form
} else if ($fromform = $formAddAxis->get_data()) {
} else if ($fromform = $formAddAxis->get_data()) {
//In this case you process validated data. $mform->get_data() returns data posted in form.
//In this case you process validated data. $mform->get_data() returns data posted in form.
$label = $fromform->label;
$label = $fromform->label;
$axe = $this->addAxis($label);
$axe = $this->addAxis($label);
$formAddAxis->set_data($toform);
$formAddAxis->set_data($toform);
return $axe; //"<option>tutu</option>";
return $axe; //"<option>tutu</option>";
} else {
} else {
// this branch is executed if the form is submitted but the data doesn't validate and the form should be redisplayed
// this branch is executed if the form is submitted but the data doesn't validate and the form should be redisplayed
@@ -85,16 +86,16 @@ class assign_feedback_editpdfplus_admin {
...
@@ -85,16 +86,16 @@ class assign_feedback_editpdfplus_admin {
}
}
if($axis!=null){
if($axis!=null){
$formAxis=newaxis_form(null,array('id'=>$this->course->id),null,null,array('id'=>"assignfeedback_editpdfplus_edit_axis"));//Form processing and displaying is done here
$formAxis=newaxis_form(null,array('id'=>$this->course->id),null,null,array('id'=>"assignfeedback_editpdfplus_edit_axis"));//Form processing and displaying is done here
$formAxis=newaxis_form(null,array('id'=>$this->course->id),null,null,array('id'=>"assignfeedback_editpdfplus_add_axis"));//Form processing and displaying is done here
$formAxis=newaxis_form(null,array('id'=>$this->course->id),null,null,array('id'=>"assignfeedback_editpdfplus_add_axis"));//Form processing and displaying is done here
$formAxis=newaxis_del_form(null,array('id'=>$this->course->id),null,null,array('id'=>"assignfeedback_editpdfplus_del_axis"));//Form processing and displaying is done here