• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item.php
  • Класс: BitrixTasksItem
  • Вызов: Item::getUserFieldController
public function getUserFieldController()
{
	if($this->userFieldController)
	{
		return $this->userFieldController;
	}

	$className = static::getUserFieldControllerClass();
	if($className === null)
	{
		return null;
	}

	$cache =& static::getCache();

	if(!is_array($cache['INSTANCES'] ?? null))
	{
		$cache['INSTANCES'] = array();
	}

	if(!isset($cache['INSTANCES']['UFC']))
	{
		$ctx = new $className;
		$cache['INSTANCES']['UFC'] = $ctx;
	}

	return $cache['INSTANCES']['UFC'];
}