Minor - format code.

1.9.x
Julio Montoya 11 years ago
parent 7be548216c
commit 45f17db7bd
  1. 13
      main/exercice/question.class.php

@ -905,7 +905,6 @@ abstract class Question
}
}
}
/**
@ -915,7 +914,8 @@ abstract class Question
* @param integer $exerciseId - exercise ID
* @param boolean $fromSave - comming from $this->save() or not
*/
function addToList($exerciseId, $fromSave = false) {
function addToList($exerciseId, $fromSave = false)
{
$TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
$id = $this->id;
// checks if the exercise ID is not in the list
@ -943,7 +943,8 @@ abstract class Question
* @param integer $exerciseId - exercise ID
* @return boolean - true if removed, otherwise false
*/
function removeFromList($exerciseId) {
function removeFromList($exerciseId)
{
$TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
$id = $this->id;
@ -986,7 +987,8 @@ abstract class Question
* @author Olivier Brouckaert
* @param integer $deleteFromEx - exercise ID if the question is only removed from one exercise
*/
function delete($deleteFromEx = 0) {
function delete($deleteFromEx = 0)
{
$course_id = api_get_course_int_id();
$TBL_EXERCICE_QUESTION = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
@ -1050,7 +1052,8 @@ abstract class Question
* @return int ID of the new question
*/
function duplicate($course_info = null) {
function duplicate($course_info = null)
{
if (empty($course_info)) {
$course_info = $this->course;
} else {

Loading…
Cancel
Save