Bitrix Site Manager

CIBlock::GetSite

CDBResult
CIBlock::GetSite(
 int iblock_id
);

Returns a list of sites to which the information block is bound.

Parameters

ParameterDescription
iblock_id Information block ID.

Return Values

Returns an instance of CDBResult with the site fields.

See Also

  • CDBResult
  • Fields of CSite

    Example


    <?
    $db_iblock_type = CIBlockType::GetList();
    while($ar_iblock_type = $db_iblock_type->Fetch())
    {
       if($arIBType = CIBlockType::GetByIDLang($ar_iblock_type["ID"], LANG))
       {
          echo htmlspecialcharsex($arIBType["NAME"])."<br>";
       }   
    }
    ?>