Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions
Cli functions
Lang translation functions
Log export functions
Mcp functions

log_export_path()

Description

Return the protected storage path for a job's prepared export.

Parameters

ColumnTypeDefaultDescription
$job: int hash_hmac'sha256'
. 'user_downloads'
$userref;
$scope: string
an or
$offline_job_queue
$lang
$job int Job reference.

Return

string Absolute path in the temporary download store.

Location

include/log_export_functions.php lines 285 to 290

Definition

 
function log_export_path(int $job): string
{
    global 
$scramble_key;
    
$name = hash_hmac('sha256', 'log_export:' . $job, $scramble_key);
    return 
get_temp_dir(false, 'user_downloads') . '/' . $name . '.csv';
}

This article was last updated 3rd December 2026 15:35 Europe/London time based on the source file dated 3rd December 2026 13:55 Europe/London time.