• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/sqlwhere.php
  • Класс: CAllSQLWhere
  • Вызов: CAllSQLWhere::GetJoins
public function GetJoins()
{
	$result = array();

	foreach($this->c_joins as $key => $counter)
	{
		if($counter > 0)
		{
			$TABLE_ALIAS = $this->fields[$key]["TABLE_ALIAS"];
			if($this->l_joins[$TABLE_ALIAS])
				$result[$TABLE_ALIAS] = $this->fields[$key]["LEFT_JOIN"];
			else
				$result[$TABLE_ALIAS] = $this->fields[$key]["JOIN"];
		}
	}
	return implode("n", $result);
}