int CTestResult::GetCount( int ATTEMPT_ID );
The GetCount method returns a number of examination questions for the specified attempt.
| Parameter | Description |
|---|---|
| ATTEMPT_ID | The attempt ID. |
The method returns the number of examination questions.
<?
if (CModule::IncludeModule("learning"))
{
$ATTEMPT_ID = 588;
$cnt = CTestResult::GetCount($ATTEMPT_ID);
echo "Number of questions:".$cnt;
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |