• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/import/personnameformatter.php
  • Класс: BitrixTasksImportPersonNameFormatter
  • Вызов: PersonNameFormatter::setFormatID
static function setFormatID($formatID)
{
	if(!is_int($formatID))
	{
		throw new MainArgumentTypeException('formatID', 'integer');
	}

	if(!self::isDefined($formatID))
	{
		return false;
	}

	self::$formatID = $formatID;
	self::$formatString = null;
	if($formatID !== self::Dflt)
	{
		return COption::SetOptionString('tasks', 'person_name_format_id', $formatID);
	}
	// Do not store default format ID
	COption::RemoveOption('tasks', 'person_name_format_id');
	return true;
}