CDBResult CTest::GetByID( int ID );
The GetByID method returns a specified test record. The current user access permissions are respected.
| Parameter | Description |
|---|---|
| ID | The test ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$TEST_ID = 32;
$res = CTest::GetByID($TEST_ID);
if ($arTest = $res->GetNext())
{
echo "Test name: ".$arTest["NAME"];
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |