Template::getInvitationsFrom

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Template
  4. getInvitationsFrom
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/publicaction/task/template.php
  • Класс: BitrixTasksDispatcherPublicActionTaskTemplate
  • Вызов: Template::getInvitationsFrom
static function getInvitationsFrom(array $data, $fieldName, &$toInvite)
{
	if(array_key_exists($fieldName, $data) && is_array($data[$fieldName]))
	{
		foreach($data[$fieldName] as $user)
		{
			if(!is_array($user) && !intval($user)) // not a numeric ID or user structure
			{
				continue;
			}

			if(!intval($user['ID']) && check_email($user['EMAIL']))
			{
				$toInvite['MAIL'][$user['EMAIL']] = $user;
			}
			elseif(User::isNetworkId($user['ID']))
			{
				$toInvite['NETWORK'][$user['ID']] = $user;
			}
		}
	}
}

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