• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockproptools.php
  • Класс: CIBlockPropertyTools
  • Вызов: CIBlockPropertyTools::clearPropertyList
static function clearPropertyList($propertyCodes)
{
	$result = [];
	if (!is_array($propertyCodes))
	{
		$propertyCodes = [(string)$propertyCodes];
	}
	if (empty($propertyCodes))
	{
		return $result;
	}

	$currentList = static::getPropertyCodes(true);
	foreach ($propertyCodes as $code)
	{
		$code = (string)$code;
		if (isset($currentList[$code]))
		{
			$result[] = $code;
		}
	}
	unset($code);

	return $result;
}