CCourse::GetSite
CDBResult CCourse::GetSite( int COURSE_ID );
The GetSite method returns a list of sites on which the specified training course can be used.
Parameters
Parameter | Description |
---|---|
COURSE_ID | The course ID. |
Return Values
The method returns an instance of the CDBResult object.
See Also
Example
<? 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"]; } ?>
© «Bitrix24», 2001-2024