Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mikael Salson
alecsia
Commits
3e8a6b7e
Commit
3e8a6b7e
authored
Feb 13, 2020
by
Mikael Salson
Browse files
Sujet.php: documentation on noteInitiale
parent
45ffd741
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Alecsia/AnnotationBundle/Controller/Sujet/DefaultController.php
View file @
3e8a6b7e
...
...
@@ -240,7 +240,7 @@ class DefaultController extends AlecsiaController {
$noteInitiale
=
$sujet
->
getNoteInitiale
();
if
(
$noteInitiale
!=
0
)
{
$noteInitiale
=
(
$notesur
/
$sujet
->
getNoteSur
())
*
$noteInitiale
;
$noteInitiale
=
$an
->
arrondirNote
s
(
$noteInitiale
,
$an
::
ARR_UNITE
,
$an
::
ARR_PROCHE
);
$noteInitiale
=
$an
->
arrondirNote
(
$noteInitiale
,
$an
::
ARR_UNITE
,
$an
::
ARR_PROCHE
);
$sujet
->
setNoteInitiale
(
$noteInitiale
);
}
if
(
$notesur
!==
""
)
{
...
...
src/Alecsia/AnnotationBundle/Entity/Sujet.php
View file @
3e8a6b7e
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment