Documentation

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

ParameterDescription
COURSE_ID The course ID.

Return Values

The method returns an instance of the CDBResult object.

See Also

  • CDBResult

    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
    Up