Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 651c8d4a54
commit a4cc74da55
  1. 8
      main/exercise/answer.class.php

@ -192,6 +192,7 @@ class Answer
* Reads answer information from the data base ordered by parameter * Reads answer information from the data base ordered by parameter
* @param string $field Field we want to order by * @param string $field Field we want to order by
* @param string $order DESC or ASC * @param string $order DESC or ASC
* @return bool
* *
* @author Frederic Vauthier * @author Frederic Vauthier
*/ */
@ -275,10 +276,12 @@ class Answer
$i++; $i++;
} }
$this->nbrAnswers = $i - 1; $this->nbrAnswers = $i - 1;
return true;
} }
/** /**
* returns the autoincrement id identificator * returns the autoincrement id
* *
* @author Juan Carlos Ra<EFBFBD>a * @author Juan Carlos Ra<EFBFBD>a
* @return integer - answer num * @return integer - answer num
@ -379,6 +382,7 @@ class Answer
/** /**
* Returns a list of answers * Returns a list of answers
* @author Yannick Warnier <ywarnier@beeznest.org> * @author Yannick Warnier <ywarnier@beeznest.org>
* @param bool $decode
* @return array List of answers where each answer is an array * @return array List of answers where each answer is an array
* of (id, answer, comment, grade) and grade=weighting * of (id, answer, comment, grade) and grade=weighting
*/ */
@ -498,7 +502,7 @@ class Answer
* @param - integer $id - answer ID * @param - integer $id - answer ID
* @return integer - answer position * @return integer - answer position
*/ */
function selectPosition($id) public function selectPosition($id)
{ {
return isset($this->position[$id]) ? $this->position[$id] : null; return isset($this->position[$id]) ? $this->position[$id] : null;
} }

Loading…
Cancel
Save