Bitrix Site Manager

CTestResult::GetProgress

array
CTestResult::GetProgress(
 int ATTEMPT_ID
);

The GetProgress method returns a number of answered questions and questions with no answers.

Parameters

ParameterDescription
ATTEMPT_ID The attempt ID.

Return Values

The method returns an associated array with the following keys:

See Also

  • CTestResult::GetList
  • Example

    
    <?
    if (CModule::IncludeModule("learning"))
    {
        $ATTEMPT_ID = 588;
    
        $arStat = CTestResult::GetProgress($ATTEMPT_ID);
    
        echo $arStat["TODO"];
        echo $arStat["DONE"];
    
    }
    ?>