ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFileDataImport.php
Go to the documentation of this file.
1<?php
2
23{
24 protected string $import_path;
25
26 public function __construct()
27 {
28 define('IMPORT_PATH', 'import');
30 $this->import_path = parent::getPath() . "/" . IMPORT_PATH;
31 $this->initExportDirectory();
32 }
33
34 #[\Override]
35 public function getPath(): string
36 {
37 return $this->import_path;
38 }
39
40 private function initExportDirectory(): void
41 {
42 if (!file_exists($this->import_path)) {
43 ilFileUtils::makeDir($this->import_path);
44 }
45 }
46}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc