3 declare(strict_types=1);
55 $unix_time = $a_unix_time;
56 return $this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $unix_time .
'.xml';
65 $unix_time = $a_unix_time;
66 return unlink($this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $unix_time .
'.xml');
77 $creation_time = time();
78 $file_name = $this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $creation_time .
'.xml';
83 return $creation_time;
89 private function init(): void
91 if (!is_dir($this->import_dir)) {
deleteFileByCreationDate(int $a_unix_time)
Delete a file.
moveUploadedFile(string $a_temp_name)
move uploaded files public
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
getImportFileByCreationDate(int $a_unix_time)
Get import file by creation date.
static moveUploadedFile(string $a_file, string $a_name, string $a_target, bool $a_raise_errors=true, string $a_mode="move_uploaded")
move uploaded file
static getDataDir()
get data directory (outside webspace)
init()
init function: create import directory, delete old files