• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/entity_query_chain.php
  • Класс: CEntityQueryChain
  • Вызов: CEntityQueryChain::addElement
public function addElement(CEntityQueryChainElement $element)
{
	if (empty($this->chain) && !($element->getValue() instanceof CBaseEntity))
	{
		throw new Exception('The first element of chain should be Entity only.');
	}

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

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