Bitrix Site Manager

CTestResult::GetCount

int
CTestResult::GetCount(
 int ATTEMPT_ID
);

The GetCount method returns a number of examination questions for the specified attempt.

Parameters

ParameterDescription
ATTEMPT_ID The attempt ID.

Return Values

The method returns the number of examination questions.

See Also

  • CTestResult::GetList
  • Example

    
    <?
    if (CModule::IncludeModule("learning"))
    {
        $ATTEMPT_ID = 588;
    
        $cnt = CTestResult::GetCount($ATTEMPT_ID);
    
        echo "Number of questions:".$cnt;
    
    }
    ?>