Documentation

GetSite

Description and parameters

CDBResult
CIBlock::GetSite(
 int iblock_id
);

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


Параметры вызова

Parameter Description
iblock_id Iblock ID.

Return

Returns object CDBResult.

See Also

Example

<?
$SITES = '';
$rsSites = CIBlock::GetSite($IBLOCK_ID);
while($arSite = $rsSites->Fetch())
$SITES .= ($SITES!=""?" / ":"").htmlspecialchars($arSite["SITE_ID"]);
?>
© «Bitrix24», 2001-2024