CDBResult CCourse::GetSite( int COURSE_ID );
The GetSite method returns a list of sites on which the specified training course can be used.
| Parameter | Description |
|---|---|
| COURSE_ID | The course ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$ID = 106;//Course ID
$arSite = Array();
$db_SITE_ID = CCourse::GetSite($ID);
while($ar_SITE_ID = $db_SITE_ID->Fetch())
$arSite[] = $ar_SITE_ID["LID"];
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |