• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/handler/base.php
  • Класс: BitrixReportVisualConstructorHandlerBase
  • Вызов: Base::updateFormElementValue
public function updateFormElementValue($formElement, $value)
{
	if (is_string($formElement))
	{
		$formElement = $this->getFormElement($formElement);
	}

	if (!$formElement || !($formElement instanceof BaseValuable))
	{
		return false;
	}

	$formElement->setValue($value);
	$configuration = $this->getConfiguration($formElement->getKey());
	if ($configuration)
	{
		$configuration->setValue($formElement->getValue());
	}
	else
	{
		$this->addToConfiguration($formElement);
	}
	return true;
}