CDBResult CCourse::GetByID( int ID );
The GetByID method returns fields of the specified course. The current user access permissions are respected.
| Parameter | Description |
|---|---|
| ID | The course ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$course = CCourse::GetByID($COURSE_ID);
if ($arCourse = $course->GetNext())
{
echo $arCourse["NAME"];
}
}
?>
| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |