Task::prepareQuery

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Task
  4. prepareQuery
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/tasks/task.php
  • Класс: Bitrix\Crm\Activity\Provider\Tasks\Task
  • Вызов: Task::prepareQuery
static function prepareQuery(int $taskId)
{
	$query = ActivityTable::query();
	$query
		->addSelect('ID')
		->addSelect('TYPE_ID')
		->addSelect('PROVIDER_ID')
		->addSelect('PROVIDER_TYPE_ID')
		->addSelect('COMPLETED')
		->addSelect('SUBJECT')
		->addSelect('RESPONSIBLE_ID')
		->addSelect('SETTINGS')
		->addSelect('STORAGE_TYPE_ID')
		->addSelect('STORAGE_ELEMENT_IDS')
		->addSelect('CREATED')
		->addSelect('LAST_UPDATED')
		->addSelect('START_TIME')
		->addSelect('END_TIME')
		->addSelect('PRIORITY')
		->where('ASSOCIATED_ENTITY_ID', $taskId)
		->where('PROVIDER_ID', self::getId())
		->where('PROVIDER_TYPE_ID', self::getProviderTypeId())
	;

	return $query;
}

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