Description of class class.
More...
◆ __construct()
ilCalendarZipJob::__construct |
( |
| ) |
|
◆ getExpectedTimeOfTaskInSeconds()
ilCalendarZipJob::getExpectedTimeOfTaskInSeconds |
( |
| ) |
|
- Returns
- int the amount of seconds this task usually taskes. If your task-duration scales with the the amount of data, try to set a possible high value of try to calculate it. If a task duration exceeds this value, it will be displayed as "possibly failed" to the user
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 78 of file class.ilCalendarZipJob.php.
◆ getInputTypes()
ilCalendarZipJob::getInputTypes |
( |
| ) |
|
◆ getOutputType()
ilCalendarZipJob::getOutputType |
( |
| ) |
|
◆ isStateless()
ilCalendarZipJob::isStateless |
( |
| ) |
|
◆ run()
- Todo:
- use filsystem service
Definition at line 58 of file class.ilCalendarZipJob.php.
References ilUtil\delDir(), and ilUtil\zip().
60 $this->logger->debug(
'Start zipping input dir!');
61 $this->logger->dump(
$input);
62 $tmpdir =
$input[0]->getValue();
63 $this->logger->debug(
'Zipping directory:' . $tmpdir);
71 $zip_file_name->setValue($tmpdir .
'.zip');
72 return $zip_file_name;
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
◆ $logger
ilCalendarZipJob::$logger = null |
|
private |
The documentation for this class was generated from the following file: