• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/form.php
  • Класс: BitrixReportVisualConstructorForm
  • Вызов: Form::render
public function render()
{
	echo htmlspecialcharsbx($this->getPrefix());
	$action = $this->getAction();
	$id = $this->getId();
	$class = $this->getClass();
	$name = $this->getName();
	$dataAttributes = $this->getDataAttributes();
	$dataAttributesString = '';
	foreach ($dataAttributes as $key => $value)
	{
		$dataAttributesString .= ' data-' . $key . '="' . $value .  '" ';
	}

	$formArguments = 'action="' . (($action !== null) ? $action : '#') . '" ';
	$formArguments .= ($id !== null) ? 'id="' . $id . '" ' : '';
	$formArguments .= !empty($class) ? 'class="' . implode(' ', $class) . '" ' : '';
	$formArguments .= ($name !== null) ? 'name="' . $name . '" ' : '';
	$formArguments .= $dataAttributesString;
	echo '
'; $fields = $this->getFields(); foreach ($fields as $key => $field) { $field->render(); } echo '
'; echo htmlspecialcharsbx($this->getPostfix()); }