Member::getDataMembersIds

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Member
  4. getDataMembersIds
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/member.php
  • Класс: BitrixTasksControlMember
  • Вызов: Member::getDataMembersIds
private function getDataMembersIds(array $data)
{
	$members = [];

	if (!empty($data[self::FIELD_CREATED_BY]))
	{
		$members[] = $data[self::FIELD_CREATED_BY];
	}
	else
	{
		$members[] = (int)TaskTable::getById($this->taskId)->fetch()['CREATED_BY'];
	}
	if (!empty($data[self::FIELD_RESPONSIBLE_ID]))
	{
		$members[] = $data[self::FIELD_RESPONSIBLE_ID];
	}
	if (!empty($data[self::FIELD_ACCOMPLICES]))
	{
		foreach ($data[self::FIELD_ACCOMPLICES] as $key => $id)
		{
			$members[] = $id;
		}
	}

	if (!empty($data[self::FIELD_AUDITORS]))
	{
		foreach ($data[self::FIELD_AUDITORS] as $key => $id)
		{
			$members[] = $id;
		}
	}
	return array_unique($members);
}

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