CDBResult CTestResult::GetByID( int ID );
The GetByID method obtains an examination question.
Parameter | Description |
---|---|
ID | The examination question ID. |
The method returns a CDBResult object.
<? 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"]; } } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |