Wait::processCreation

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Wait
  4. processCreation
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/wait.php
  • Класс: Bitrix\Crm\Activity\Provider\Wait
  • Вызов: Wait::processCreation
static function processCreation(array $activityFields, array $params = null)
{
	if(!is_array($params))
	{
		$params = array();
	}

	if(isset($params['IS_RESTORATION']) && $params['IS_RESTORATION'])
	{
		return;
	}

	$completed = isset($activityFields['COMPLETED']) && $activityFields['COMPLETED'] === 'Y';
	if($completed)
	{
		return;
	}

	$bindings = isset($params['BINDINGS']) && is_array($params['BINDINGS'])
		? $params['BINDINGS'] : array();

	if(empty($bindings))
	{
		return;
	}

	$providerID = isset($activityFields['PROVIDER_ID']) ? $activityFields['PROVIDER_ID'] : '';
	self::complete($bindings, array('SKIP_RECENT' => $providerID === self::PROVIDER_ID));
}

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