Where in the code is a quiz grade calculated?

Where in the code is a quiz grade calculated?

ໂດຍ Jacob Kier -
ຈຳນວນການຕອບກັບ: 3
Hello,

I'm working on a modification to add penalties to overdue quizzes (discussed here).  Could someone who is familiar with the code of the quiz mod tell me where quiz grades are calculated and placed into the gradebook?  I've got all the setup stuff added to the database/quiz update page but I'm having trouble figuring out where to add in my penalty calculation code.

Thanks,
Jacob
ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Jacob Kier

Re: Where in the code is a quiz grade calculated?

ໂດຍ Anthony Borrow -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers
Check out the quiz_apply_penalty_and_timelimit function in the /mod/quiz/questionlib.php
ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Anthony Borrow

Re: Where in the code is a quiz grade calculated?

ໂດຍ Jacob Kier -
Thanks, but I don't think that's what I'm looking for.  The penalty I'm apply is applied to the final quiz score as a whole--it looks like that function is for individual questions.  I'm thinking probably the place to do it is right before the final score is inserted into the gradebook but I'm not sure where that is.

Thanks,
Jacob
ການຈັດອັນດັບສະເລ່ຍ: -