CDBResult CLQuestion::GetByID( int ID );
The GetByID method returns a question identified by the ID.
| Parameter | Description |
|---|---|
| ID | The question ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$QUESTION_ID = 289;
$res = CLQuestion::GetByID($QUESTION_ID);
if ($arQuestion = $res->GetNext())
{
echo "Name: ".$arQuestion["NAME"];
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |