Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions core/modules/saturne/modules_saturne.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,17 +821,17 @@ public function buildDocumentFilename($objectDocument, $outputLangs, $object, $m
/**
* Function to build a document on disk
*
* @param SaturneDocuments $objectDocument Object source to build document
* @param Translate $outputLangs Lang object to use for output
* @param string $srcTemplatePath Full path of source filename for generator using a template file
* @param int $hideDetails Do not show line details
* @param int $hideDesc Do not show desc
* @param int $hideRef Do not show ref
* @param array $moreParam More param (Object/user/etc)
* @return int 1 if OK, <=0 if KO
* @param SaturneDocuments|null $objectDocument Object source to build document
* @param Translate|null $outputLangs Lang object to use for output
* @param string $srcTemplatePath Full path of source filename for generator using a template file
* @param int $hideDetails Do not show line details
* @param int $hideDesc Do not show desc
* @param int $hideRef Do not show ref
* @param array $moreParam More param (Object/user/etc)
* @return int 1 if OK, <=0 if KO
* @throws Exception
*/
public function write_file(SaturneDocuments $objectDocument, Translate $outputLangs, string $srcTemplatePath, int $hideDetails = 0, int $hideDesc = 0, int $hideRef = 0, array $moreParam): int
public function write_file(?SaturneDocuments $objectDocument, ?Translate $outputLangs, string $srcTemplatePath = '', int $hideDetails = 0, int $hideDesc = 0, int $hideRef = 0, array $moreParam = []): int
{
global $action, $conf, $hookmanager, $langs, $moduleNameLowerCase, $mysoc;

Expand Down