N°4454 - Measuring the use of the queryphrase book

This commit is contained in:
Benjamin Dalsass
2022-01-14 11:12:30 +01:00
parent dcd52d6919
commit 91d4da85e1
8 changed files with 509 additions and 5 deletions

View File

@@ -452,6 +452,7 @@ EOF
function CheckParameters($sExpression, $sQueryId, $sFormat)
{
$oExporter = null;
$oQuery = null;
if (utils::IsArchiveMode() && !UserRights::CanBrowseArchive()) {
ReportErrorAndExit("The user account is not authorized to access the archives");
@@ -516,6 +517,11 @@ function CheckParameters($sExpression, $sQueryId, $sFormat)
ReportErrorAndExit(utils::HtmlEntities($e->getMessage()));
}
// update last export information if check parameters ok
if($oQuery != null){
$oQuery->UpdateLastExportInformation();
}
$oExporter->SetFormat($sFormat);
$oExporter->SetChunkSize(EXPORTER_DEFAULT_CHUNK_SIZE);
$oExporter->SetObjectList($oSearch);