CCrmBizProc::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmBizProc
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_bizproc.php
  • Класс: \CCrmBizProc
  • Вызов: CCrmBizProc::__construct
public function __construct($entityType = 'LEAD')
{
	global $USER;

	$this->sEntityType = mb_strtoupper($entityType);
	$this->sDocument = CCrmBizProcHelper::ResolveDocumentName(CCrmOwnerType::ResolveID($this->sEntityType));

	if ($this->sDocument === '')
	{
		$this->sEntityType = CCrmOwnerType::LeadName;
		$this->sDocument = CCrmBizProcHelper::ResolveDocumentId(CCrmOwnerType::Lead);
	}
	
	if (is_object($USER))
	{
		$this->arCurrentUserGroups = $USER->GetUserGroupArray();
	}
}

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