Provider::getPrimaryUsersQuery

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Provider
  4. getPrimaryUsersQuery
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/provider.php
  • Класс: BitrixTasksInternalsProjectProvider
  • Вызов: Provider::getPrimaryUsersQuery
public function getPrimaryUsersQuery(array $projectIds): Query
{
	$query = UserToGroupTable::query();
	$query
		->setSelect([
			'GROUP_ID',
			'USER_ID',
			'ROLE',
			'INITIATED_BY_TYPE',
			'AUTO_MEMBER',
			'NAME' => 'USER.NAME',
			'LAST_NAME' => 'USER.LAST_NAME',
			'SECOND_NAME' => 'USER.SECOND_NAME',
			'LOGIN' => 'USER.LOGIN',
			'PERSONAL_PHOTO' => 'USER.PERSONAL_PHOTO',
		])
		->where('GROUP.ACTIVE', 'Y')
		->where('USER.ACTIVE', 'Y')
		->whereIn('GROUP_ID', $projectIds)
	;

	return $query;
}

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