• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Property/Property.php
  • Класс: BitrixCatalogv2PropertyProperty
  • Вызов: Property::isPublic
public function isPublic(): bool
{
	$featureCollection = $this->getPropertyFeatureCollection();
	$detailFeature = $featureCollection->findByFeatureId(IblockModelPropertyFeature::FEATURE_ID_DETAIL_PAGE_SHOW);
	if (!$detailFeature || !$detailFeature->isEnabled())
	{
		return false;
	}

	$listFeature = $featureCollection->findByFeatureId(IblockModelPropertyFeature::FEATURE_ID_LIST_PAGE_SHOW);
	if (!$listFeature || !$listFeature->isEnabled())
	{
		return false;
	}

	return true;
}