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