CDBResult CLAnswer::GetByID( int ID );
The GetByID method returns an answer by the ID.
| Parameter | Description |
|---|---|
| ID | The answer ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$ANSWER_ID = 573;
$res = CLAnswer::GetByID($ANSWER_ID);
if ($arAnswer = $res->GetNext())
{
echo "Name: ".$arAnswer["ANSWER"];
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |