CTestResult::GetByID
CDBResult CTestResult::GetByID( int ID );
The GetByID method obtains an examination question.
Parameters
Parameter | Description |
---|---|
ID | The examination question ID. |
Return Values
The method returns a CDBResult object.
See Also
Example
<? if (CModule::IncludeModule("learning")) { $TEST_RESULT_ID = 2894; $res = CTestResult::GetByID($TEST_RESULT_ID); if ($arResult = $res->GetNext()) { echo " Question name: ".$arResult["QUESTION_NAME"]; echo " Answered: ".$arResult["ANSWERED"]; echo " Point: ".$arResult["POINT"]; } } ?>
© «Bitrix24», 2001-2024