• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/usertypesql.php
  • Класс: CUserTypeSQL
  • Вызов: CUserTypeSQL::GetSelect
function GetSelect()
{
	$result = "";
	foreach($this->select as $key => $value)
	{
		$simpleFormat = true;
		if($this->user_fields[$key]["MULTIPLE"] == "N")
		{
			if($arType = $this->user_fields[$key]["USER_TYPE"])
			{
				if(is_callable(array($arType["CLASS_NAME"], "FormatField")))
				{
					$result .= ", " . call_user_func_array(array($arType["CLASS_NAME"], "FormatField"), array($this->user_fields[$key], $this->table_alias . "." . $key)) . " " . $key;
					$simpleFormat = false;
				}
			}
		}
		if($simpleFormat)
		{
			$result .= ", " . $this->table_alias . "." . $key;
		}
	}
	return $result;
}