• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/routing/options.php
  • Класс: BitrixMainRoutingOptions
  • Вызов: Options::mergeWith
public function mergeWith($anotherOptions)
{
	$this->where = array_merge($this->where, $anotherOptions->where);
	$this->middleware = array_merge($this->middleware, $anotherOptions->middleware);

	if ($anotherOptions->prefix != '')
	{
		$this->parentPrefixes[] = $anotherOptions->prefix;
	}

	if ($anotherOptions->name != '')
	{
		$this->parentNames[] = $anotherOptions->name;
	}
}