70 $unix_time = (int) $a_unix_time;
71 return $this->
getImportDirectory() .
'/' . self::IMPORT_NAME .
'_' . $unix_time .
'.xml';
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';
100 if (!ilUtil::moveUploadedFile($a_temp_name,
'', $file_name,
false)) {
103 return $creation_time;
116 if (!@is_dir($this->import_dir)) {
getImportDirectory()
get import directory
static makeDirParents($a_dir)
Create a new directory and all parent directories.
__construct()
Constructor.
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