Util::getDefaultEntityList

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Util
  4. getDefaultEntityList
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
  • Класс: BitrixCalendarUtil
  • Вызов: Util::getDefaultEntityList
static function getDefaultEntityList($userId, $type, $ownerId)
{
	$entityList = [['entityId' => 'user', 'id' => $userId]];
	if ($type === 'user' && $ownerId !== $userId)
	{
		$entityList[] = ['entityId' => 'user', 'id' => $ownerId];
	}
	else if($type === 'group')
	{
		$entityList[] = ['entityId' => 'project', 'id' => $ownerId];
	}
	return $entityList;
}

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