- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/component/imageinput.php
- Класс: BitrixCatalogComponentImageInput
- Вызов: ImageInput::getMorePhotoPropertyId
private function getMorePhotoPropertyId(): ?int
{
if ($this->morePhotoPropertyId === null)
{
$this->morePhotoPropertyId = 0;
$propertyRaw = BitrixIblockPropertyTable::getList([
'select' => ['ID'],
'filter' => [
'=IBLOCK_ID' => $this->getIblockId(),
'=ACTIVE' => 'Y',
'=CODE' => MorePhotoImage::CODE,
],
'limit' => 1,
'cache' => [
'ttl' => 86400,
],
]);
if ($morePhotoProperty = $propertyRaw->fetch())
{
$this->morePhotoPropertyId = $morePhotoProperty['ID'];
}
}
return $this->morePhotoPropertyId;
}