• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/numerator/numerator.php
  • Класс: BitrixMainNumeratorNumerator
  • Вызов: Numerator::save
public function save()
{
	$settingsToStore = $this->getSettings();
	$result = NumeratorTable::saveNumerator($this->id, [
		'CODE' => $this->code,
		'NAME' => $this->name,
		'TEMPLATE' => $this->template,
		'TYPE' => $this->type ? $this->type : static::NUMERATOR_DEFAULT_TYPE,
		'SETTINGS' => $settingsToStore,
	]);
	if ($result->isSuccess())
	{
		$this->id = $result->getId();
	}

	return $result;
}