CDBResult CTestAttempt::GetByID( int ID );
The GetByID method returns an attempt identified by the ID. The current user access permissions are respected.
Parameter | Description |
---|---|
ID | The attempt ID. |
The method returns an instance of the CDBResult object.
<? if (CModule::IncludeModule("learning")) { $ATTEMPT_ID = 590; $res = CTestAttempt::GetByID($ATTEMPT_ID); if ($arAttempt = $res->GetNext()) { echo "Test name: ".$arAttempt["TEST_NAME"]; echo "Date start: ".$arAttempt["DATE_START"]; } } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |