ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilImportDirectory Class Reference
+ Inheritance diagram for ilImportDirectory:
+ Collaboration diagram for ilImportDirectory:

Public Member Functions

 __construct (Filesystem $storage, ilLogger $logger)
 
 getRelativePath ()
 
 exists ()
 @inheritDoc More...
 
 getAbsolutePath ()
 @inheritDoc More...
 
 exists ()
 
 getAbsolutePath ()
 

Protected Member Functions

 getPathPrefix ()
 

Protected Attributes

Filesystem $storage
 
ilLogger $logger
 

Private Member Functions

 init ()
 

Private Attributes

const PATH_UPLOAD_PREFIX = 'upload'
 
string $relative_path
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilImportDirectory::__construct ( Filesystem  $storage,
ilLogger  $logger 
)

Definition at line 28 of file class.ilImportDirectory.php.

References $logger, $storage, init(), and ILIAS\Repository\logger().

+ Here is the call graph for this function:

Member Function Documentation

◆ exists()

ilImportDirectory::exists ( )

@inheritDoc

Implements ilImportDirectoryHandler.

Definition at line 43 of file class.ilImportDirectory.php.

43 : bool
44 {
45 return $this->storage->hasDir($this->relative_path);
46 }

Referenced by getAbsolutePath(), and ilExportImportDirectory\getFilesFor().

+ Here is the caller graph for this function:

◆ getAbsolutePath()

ilImportDirectory::getAbsolutePath ( )

@inheritDoc

Implements ilImportDirectoryHandler.

Definition at line 51 of file class.ilImportDirectory.php.

51 : string
52 {
53 if (!$this->exists()) {
54 return '';
55 }
57 }
static getDataDir()
get data directory (outside webspace)

References $relative_path, exists(), and ilFileUtils\getDataDir().

+ Here is the call graph for this function:

◆ getPathPrefix()

ilImportDirectory::getPathPrefix ( )
abstractprotected

Reimplemented in ilExportImportDirectory, ilMediaObjectImportDirectory, and ilScormImportDirectory.

Referenced by init().

+ Here is the caller graph for this function:

◆ getRelativePath()

ilImportDirectory::getRelativePath ( )

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

35 : string
36 {
38 }

References $relative_path.

Referenced by ilExportImportDirectory\getFilesFor().

+ Here is the caller graph for this function:

◆ init()

ilImportDirectory::init ( )
private

Definition at line 61 of file class.ilImportDirectory.php.

61 : void
62 {
63 $this->relative_path = self::PATH_UPLOAD_PREFIX . '/' . $this->getPathPrefix();
64 }

References getPathPrefix().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $logger

ilLogger ilImportDirectory::$logger
protected

Definition at line 26 of file class.ilImportDirectory.php.

Referenced by __construct().

◆ $relative_path

string ilImportDirectory::$relative_path
private

Definition at line 23 of file class.ilImportDirectory.php.

Referenced by getAbsolutePath(), and getRelativePath().

◆ $storage

Filesystem ilImportDirectory::$storage
protected

Definition at line 25 of file class.ilImportDirectory.php.

Referenced by __construct().

◆ PATH_UPLOAD_PREFIX

const ilImportDirectory::PATH_UPLOAD_PREFIX = 'upload'
private

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


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