Description of class class.
More...
Description of class class.
- Author
- Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Definition at line 14 of file class.ilZipJob.php.
◆ __construct()
ilZipJob::__construct |
( |
| ) |
|
Construct.
Definition at line 22 of file class.ilZipJob.php.
References $GLOBALS.
24 $this->logger =
$GLOBALS[
'DIC']->logger()->cal();
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
◆ getExpectedTimeOfTaskInSeconds()
ilZipJob::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 84 of file class.ilZipJob.php.
◆ getInputTypes()
ilZipJob::getInputTypes |
( |
| ) |
|
◆ getOutputType()
ilZipJob::getOutputType |
( |
| ) |
|
◆ isStateless()
ilZipJob::isStateless |
( |
| ) |
|
◆ run()
- Todo:
- use filsystem service
Definition at line 62 of file class.ilZipJob.php.
References ilUtil\delDir(), and ilUtil\zip().
64 $this->logger->debug(
'Start zipping input dir!');
65 $this->logger->dump(
$input);
66 $tmpdir =
$input[0]->getValue();
67 $this->logger->debug(
'Zipping directory:' . $tmpdir);
75 $zip_file_name->setValue($tmpdir .
'.zip');
77 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
The documentation for this class was generated from the following file: