KuoteObjects_TestDrive __construct(
$user,
$learning
)
|
|
Constructor instantiates all the neccessary objects for the quiz to function.
Parameters:
API Tags:
Redefinition of:
- KuoteObjects_Quiz::__construct()
- Constructor instantiates all the neccessary objects for the quiz to function.
boolean answerQuestion(
integer
$selectedAnswer
)
|
|
Takes the given option number an 'answers' the question with it.
Parameters:
integer |
$selectedAnswer: |
Selected Question Option. |
API Tags:
Return: | True on successful answering, false otherwise. |
Access: | public |
Information Tags:
Throws: | Exception 2 if there is no current question. |
Redefinition of:
- KuoteObjects_Quiz::answerQuestion()
- Takes the given option number an 'answers' the question with it.