• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/classes/general/listfield.php
  • Класс: CListPropertyField
  • Вызов: CListPropertyField::existPropertyCode
static function existPropertyCode($iblockId, $code, $propertyId = 0)
{
	$iblockId = intval($iblockId);
	if (!$iblockId)
	{
		throw new ArgumentException("Required parameter "iblockId" is missing.");
	}
	if (empty($code))
	{
		return false;
	}

	$queryObject = CIBlockProperty::getList(array(), array("IBLOCK_ID" => $iblockId, "CODE" => $code));
	$property = $queryObject->fetch();

	if (!empty($property) && is_array($property))
	{
		return $property["ID"] != $propertyId;
	}
	else
	{
		return false;
	}
}