• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/entity/querychain.php
  • Класс: BitrixMainEntityQueryChain
  • Вызов: QueryChain::addElement
public function addElement(QueryChainElement $element)
{
	if (empty($this->chain) && !($element->getValue() instanceof Base))
	{
		throw new SystemException('The first element of chain should be Entity only.');
	}

	$this->chain[] = $element;
	$this->definition = null;
	$this->alias = null;

	$this->last_element = $element;
	$this->size++;
}