• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/template/entity/elementproperty.php
  • Класс: BitrixIblockTemplateEntityElementPropertyUserField
  • Вызов: ElementPropertyUserField::getFormatFunction
protected function getFormatFunction()
{
	static $propertyFormatFunction = array();
	if (!isset($propertyFormatFunction[$this->property["ID"]]))
	{
		$propertyFormatFunction[$this->property["ID"]] = false;
		if ($this->property && mb_strlen($this->property["USER_TYPE"]))
		{
			$propertyUserType = CIBlockProperty::getUserType($this->property["USER_TYPE"]);
			if(
				array_key_exists("GetPublicViewHTML", $propertyUserType)
				&& is_callable($propertyUserType["GetPublicViewHTML"])
			)
			{
				$propertyFormatFunction[$this->property["ID"]] = $propertyUserType["GetPublicViewHTML"];
			}
		}
	}
	return $propertyFormatFunction[$this->property["ID"]];
}