• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/query/unioncondition.php
  • Класс: Bitrix\Main\ORM\Query\UnionCondition
  • Вызов: UnionCondition::__construct
public function __construct($subQuery, $unionAll = false)
{
	if (!($subQuery instanceof Query) && !($subQuery instanceof SqlExpression))
	{
		throw new ArgumentException("Query or SqlExpression expected, `".gettype($subQuery)."` found.");
	}

	$this->subQuery = $subQuery;
	$this->all = $unionAll;
}