19 declare(strict_types=1);
49 $unix_time = $a_unix_time;
50 return $this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $unix_time .
'.xml';
59 $unix_time = $a_unix_time;
60 return unlink($this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $unix_time .
'.xml');
71 $creation_time = time();
72 $file_name = $this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $creation_time .
'.xml';
77 return $creation_time;
83 private function init(): void
85 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