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