• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/TypePreset.php
  • Класс: Bitrix\Crm\Service\TypePreset
  • Вызов: TypePreset::__construct
public function __construct(array $fields, array $data)
{
	$this->setTitle($fields['title'])
		->setId($fields['id'])
		->setDisabled((bool)($fields['disabled'] ?? false))
		->setCategory((string)$fields['category'])
		->setDescription((string)($fields['description'] ?? ''))
		->setIcon((string)($fields['icon'] ?? ''))
		->setData($data);
}