CTestAttempt::GetCount
int CTestAttempt::GetCount( int TEST_ID int STUDENT_ID );
The GetCount method returns the number of attempts done by a student according to the passed arguments.
Parameters
Parameter | Description |
---|---|
TEST_ID | The test ID. |
STUDENT_ID | The student ID. |
Return Values
The method returns the number of attempts.
See Also
Example
<? if (CModule::IncludeModule("learning")) { $TEST_ID = 33; $STUDENT_ID = 165; $cnt = CTestAttempt::GetCount($TEST_ID, $STUDENT_ID); echo "Number of attempts:".$cnt; } ?>
© «Bitrix24», 2001-2024