Documentation

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:

  • DONE - the number of answered questions.
  • TODO - the number of questions with no answers.

See Also

  • CTestResult::GetList
  • Example

    
    <?
    if (CModule::IncludeModule("learning"))
    {
        $ATTEMPT_ID = 588;
    
        $arStat = CTestResult::GetProgress($ATTEMPT_ID);
    
        echo $arStat["TODO"];
        echo $arStat["DONE"];
    
    }
    ?>
    © «Bitrix24», 2001-2024