70 $unix_time = (int) $a_unix_time;
83 $unix_time = (int) $a_unix_time;
84 return @unlink($this->
getImportDirectory().
'/'.self::IMPORT_NAME.
'_'.$unix_time.
'.xml');
97 $creation_time =
time();
98 $file_name = $this->
getImportDirectory().
'/'.self::IMPORT_NAME.
'_'.$creation_time.
'.xml';
104 return $creation_time;
117 if(!@is_dir($this->import_dir))
getImportDirectory()
get import directory
static makeDirParents($a_dir)
Create a new directory and all parent directories.
__construct()
Constructor.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
getImportFileByCreationDate($a_unix_time)
Get import file by creation date.
init()
init function: create import directory, delete old files
deleteFileByCreationDate($a_unix_time)
Delete a file.
static getDataDir()
get data directory (outside webspace)
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
moveUploadedFile($a_temp_name)
move uploaded files