Commit 3e8a6b7e authored by Mikael Salson's avatar Mikael Salson
Browse files

Sujet.php: documentation on noteInitiale

parent 45ffd741
......@@ -240,7 +240,7 @@ class DefaultController extends AlecsiaController {
$noteInitiale = $sujet->getNoteInitiale();
if ($noteInitiale != 0) {
$noteInitiale = ($notesur / $sujet->getNoteSur()) * $noteInitiale;
$noteInitiale = $an->arrondirNotes($noteInitiale, $an::ARR_UNITE, $an::ARR_PROCHE);
$noteInitiale = $an->arrondirNote($noteInitiale, $an::ARR_UNITE, $an::ARR_PROCHE);
$sujet->setNoteInitiale($noteInitiale);
}
if ($notesur !== "") {
......
......@@ -51,7 +51,9 @@ class Sujet {
/**
* @var integer $startAt
*
* What should be the initial mark for the works
* This is generally useful either to start from 0 or from
* the maximal mark (ie. note_sur).
* @ORM\Column(name="noteInitiale", type="integer")
*/
protected $noteInitiale;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment