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.
| Parameter | Description |
|---|---|
| TEST_ID | The test ID. |
| STUDENT_ID | The student ID. |
The method returns the number of attempts.
<?
if (CModule::IncludeModule("learning"))
{
$TEST_ID = 33;
$STUDENT_ID = 165;
$cnt = CTestAttempt::GetCount($TEST_ID, $STUDENT_ID);
echo "Number of attempts:".$cnt;
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |