• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userfield/dispatcher.php
  • Класс: BitrixMainUserFieldDispatcher
  • Вызов: Dispatcher::checkFieldDescription
protected function checkFieldDescription($fieldInfo)
{
	if(!is_array($fieldInfo))
	{
		$this->addError(Loc::getMessage('MAIN_UF_DISPATCHER_ERROR_FORMAT'));
	}
	elseif(empty($fieldInfo['FIELD']))
	{
		$this->addError(Loc::getMessage('MAIN_UF_DISPATCHER_ERROR_FORMAT'));
	}
	elseif(empty($fieldInfo['ENTITY_ID']))
	{
		$this->addError(Loc::getMessage('MAIN_UF_DISPATCHER_ERROR_FORMAT', $fieldInfo['FIELD']));
	}
	else
	{
		return true;
	}

	return false;
}