• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockelement.php
  • Класс: CAllIBlockElement
  • Вызов: CAllIBlockElement::setIblock
public function setIblock(?int $iblockId): void
{
	$iblock = null;
	$language = null;
	if ($iblockId !== null)
	{
		$iblock = CIBlock::GetArrayByID($iblockId);
		if (!is_array($iblock))
		{
			$iblock = null;
		}
		else
		{
			$iblock['ID'] = (int)$iblock['ID'];
			$language = static::getIblockLanguage($iblock['ID']);
		}
	}
	$this->iblock = $iblock;
	$this->iblockLanguage = $language;
}