Documentation

GetByID

CDBResult
CIBlock::GetByID(
 int ID
);

Returns iblock by its ID. Static method.

Parameters

ParameterDescription
ID Iblock ID.

Returns

Returns object [link= 6657875]CDBResult[/link].

See Also

  • CDBResult
  • [link= 6662314#fiblock]Result fields[/link]

Example

<?
$res = CIBlock::GetByID($_GET["BID"]);
if($ar_res = $res->GetNext())
  echo $ar_res['NAME'];
?>


© «Bitrix24», 2001-2024