ILIAS  release_8 Revision v8.23
ilFileDataImport Class Reference
+ Inheritance diagram for ilFileDataImport:
+ Collaboration diagram for ilFileDataImport:

Public Member Functions

 __construct ()
 
 getPath ()
 
- Public Member Functions inherited from ilFileData
 __construct ()
 
 checkPath (string $a_path)
 
 getPath ()
 
- Public Member Functions inherited from ilFile
 deleteTrailingSlash (string $a_path)
 delete trailing slash of path variables More...
 

Protected Attributes

string $import_path
 
- Protected Attributes inherited from ilFile
string $path
 

Private Member Functions

 initExportDirectory ()
 

Detailed Description

Deprecated:

Definition at line 18 of file class.ilFileDataImport.php.

Constructor & Destructor Documentation

◆ __construct()

ilFileDataImport::__construct ( )

Definition at line 22 of file class.ilFileDataImport.php.

References ILIAS\GlobalScreen\Provider\__construct(), and initExportDirectory().

23  {
24  define('IMPORT_PATH', 'import');
26  $this->import_path = parent::getPath() . "/" . IMPORT_PATH;
27  $this->initExportDirectory();
28  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getPath()

ilFileDataImport::getPath ( )

Definition at line 30 of file class.ilFileDataImport.php.

References $import_path.

30  : string
31  {
32  return $this->import_path;
33  }

◆ initExportDirectory()

ilFileDataImport::initExportDirectory ( )
private

Definition at line 35 of file class.ilFileDataImport.php.

References ilFileUtils\makeDir().

Referenced by __construct().

35  : void
36  {
37  if (!file_exists($this->import_path)) {
38  ilFileUtils::makeDir($this->import_path);
39  }
40  }
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $import_path

string ilFileDataImport::$import_path
protected

Definition at line 20 of file class.ilFileDataImport.php.

Referenced by getPath().


The documentation for this class was generated from the following file: