• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/internals/runtime.php
  • Класс: BitrixTasksIntegrationIMInternalsRuntime
  • Вызов: Runtime::applyChatNotExist
static function applyChatNotExist()
{
	$result = array();

	$result[] = new ReferenceField('IM', ChatTable::getEntity(), array(
			'=ref.ENTITY_TYPE' => array('?', 'TASKS'),
			'=ref.ENTITY_ID' => 'this.ID',
		)
	);

	return array(
		'runtime' => $result,
		'filter' => array(
			'=IM.ID' => null, // get only tasks with no chat created for
		)
	);
}