• Модуль: documentgenerator
  • Путь к файлу: ~/bitrix/modules/documentgenerator/lib/document.php
  • Класс: BitrixDocumentGeneratorDocument
  • Вызов: Document::actualize
public function actualize(
	?int $userId = null,
	bool $sendToTransformation = true,
	bool $skipTransformationError = false
): Result
{
	if ($userId > 0)
	{
		$this->setUserId($userId);
	}
	// todo only if changed
	return $this->update(
		$this->getExternalValues(true),
		$sendToTransformation,
		$skipTransformationError
	);
}