Base::getTypeDirections

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Base
  4. getTypeDirections
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/base.php
  • Класс: Bitrix\Crm\Activity\Provider\Base
  • Вызов: Base::getTypeDirections
static function getTypeDirections($providerTypeId = null)
{
	$directions = array();
	$types = static::getTypes();
	foreach ($types as $type)
	{
		if (isset($type['PROVIDER_TYPE_ID']) && $type['PROVIDER_TYPE_ID'] === $providerTypeId && isset($type['DIRECTIONS']))
		{
			$directions = is_array($type['DIRECTIONS']) ? $type['DIRECTIONS'] : array();
			break;
		}
	}
	return $directions;
}

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