• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/entitylist/clientdataprovider/kanbandataprovider.php
  • Класс: Bitrix\Crm\Component\EntityList\ClientDataProvider\KanbanDataProvider
  • Вызов: KanbanDataProvider::getBaseFields
protected function getBaseFields(): array
{
	$fields = [
		\CCrmOwnerType::Contact => [
			'PHOTO' => [
				'sort' => false,
			],
			'HONORIFIC' => [
				'sort' => false,
				'type' => 'list',
			],
			'NAME' => [],
			'LAST_NAME' => [],
			'SECOND_NAME' => [],
			'FULL_NAME' => [],
			'BIRTHDATE' => [
				'first_order' => 'desc',
				'type' => 'date',
			],
			'POST' => [],
			'TYPE_ID' => [
				'type' => 'list',
			],
			'ASSIGNED_BY_ID' => [
				'class' => 'username',
			],
			'COMMENTS' => [
				'sort' => false,
			],
			'SOURCE_ID' => [
				'type' => 'list',
			],
			'CREATED_BY_ID' => [],
			'DATE_CREATE' => [
				'first_order' => 'desc',
				'type' => 'date',
			],
			'MODIFY_BY_ID' => [],
			'DATE_MODIFY' => [
				'first_order' => 'desc',
				'type' => 'date',
			],
			'WEBFORM_ID' => [
				'type' => 'list',
			],
		],
		\CCrmOwnerType::Company => [
			'LOGO' => [
				'sort' => false,
			],
			'TITLE' => [],
			'COMPANY_TYPE' => [
				'type' => 'list',
			],
			'EMPLOYEES' => [
				'type' => 'list',
				'first_order' => 'desc',
			],
			'ASSIGNED_BY_ID' => [],
			'BANKING_DETAILS' => [
				'sort' => false,
			],
			'INDUSTRY' => [
				'type' => 'list',
			],
			'REVENUE' => [],
			'CURRENCY_ID' => [
				'type' => 'list',
			],
			'COMMENTS' => [
				'sort' => false,
			],
			'CREATED_BY_ID' => [],
			'DATE_CREATE' => [
				'first_order' => 'desc',
				'type' => 'date',
			],
			'MODIFY_BY_ID' => [],
			'DATE_MODIFY' => [
				'first_order' => 'desc',
				'type' => 'date',
			],
			'WEBFORM_ID' => [
				'type' => 'list',
			],
		],
	];

	return $fields[$this->clientEntityTypeId];
}