• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/mobile_helper.php
  • Класс: \CCrmMobileHelper
  • Вызов: CCrmMobileHelper::getContactFilterFields
static function getContactFilterFields()
{
	$contactTypeList = array("" => GetMessage("M_CRM_NOT_SELECTED"));
	$contactTypeList2 = CCrmStatus::GetStatusListEx('CONTACT_TYPE');
	foreach ($contactTypeList2 as $key => $val)
    	{
		$contactTypeList[$key] = $val;
   		 }

	$filterFields = array(
		array(
			"type" => "text",
			"id" => "NAME",
			"name" => GetMessage('CRM_COLUMN_CONTACT_NAME'),
			"value" => ""
		),
		array(
			"type" => "text",
			"id" => "LAST_NAME",
			"name" => GetMessage('CRM_COLUMN_CONTACT_LAST_NAME'),
			"value" => ""
		),
		array(
			"type" => "select",
			"id" => "TYPE_ID",
			"name" => GetMessage('CRM_COLUMN_CONTACT_TYPE'),
			"items" => $contactTypeList,
			"value" => ""
		),
		array(
			"type" => "date",
			"id" => "DATE_CREATE",
			"name" => GetMessage('CRM_COLUMN_CONTACT_DATE_CREATE'),
			"value" => ""
		),
		array(
			"type" => "date",
			"id" => "DATE_MODIFY",
			"name" => GetMessage('CRM_COLUMN_CONTACT_DATE_MODIFY'),
			"value" => ""
		),
	);

	return $filterFields;
}