CCrmFields::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmFields
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_fields.php
  • Класс: \CCrmFields
  • Вызов: CCrmFields::__construct
function __construct(CUserTypeManager $cUFM, $sUFEntityID)
{
	global $DB;

	$this->cUFM = $cUFM;

	$this->sUFEntityID = $sUFEntityID;

	$this->arEntityId = self::GetEntityTypes();

	if (!isset($this->arEntityId[$sUFEntityID]))
	{
		$this->SetError(array('id' => 'ENTITY_ID', 'text' => GetMessage("CRM_FIELDS_ERROR_ENTITY_ID")));

		return false;
	}

	$this->arFieldType = self::GetFieldTypes();

	$this->arUFList = $this->GetUserFields($sUFEntityID, 0, LANGUAGE_ID);

	$this->cdb = $DB;
}

Добавить комментарий