• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/category/entity/category.php
  • Класс: Bitrix\Crm\Category\Entity\Category
  • Вызов: Category::getItemsFilter
public function getItemsFilter(array $filter = []): array
{
	if($this->getIsDefault())
	{
		$filter[] = [
			'LOGIC' => 'OR',
			[
				'=CATEGORY_ID' => 0,
			],
			[
				'=CATEGORY_ID' => null,
			],
			[
				'=CATEGORY_ID' => $this->getId(),
			],
		];
	}
	else
	{
		$filter['=CATEGORY_ID'] = $this->getId();
	}

	return $filter;
}