ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilFSStorageMail Class Reference
+ Inheritance diagram for ilFSStorageMail:
+ Collaboration diagram for ilFSStorageMail:

Public Member Functions

 __construct (int $a_container_id, int $a_usr_id)
 
 getRelativePathExMailDirectory ()
 
- Public Member Functions inherited from ilFileSystemAbstractionStorage
 __construct (int $a_storage_type, bool $a_path_conversion, int $a_container_id)
 Constructor. More...
 
 fileExists (string $a_absolute_path)
 
 getContainerId ()
 
 writeToFile (string $a_data, $a_absolute_path)
 
 copyFile (string $a_from, string $a_to)
 
 create ()
 
 getAbsolutePath ()
 Calculates the full path on the filesystem. More...
 
 delete ()
 
 deleteDirectory (string $a_abs_name)
 
 deleteFile (string $a_abs_name)
 
 appendToPath (string $a_appendix)
 
 getStorageType ()
 
 getPath ()
 

Protected Member Functions

 getPathPostfix ()
 
 getPathPrefix ()
 
- Protected Member Functions inherited from ilFileSystemAbstractionStorage
 getLegacyFullAbsolutePath (string $relative_path)
 
 getFileSystemService ()
 
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
 getLegacyAbsolutePath ()
 Calculates the absolute filesystem storage location. More...
 
 init ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFileSystemAbstractionStorage
static createPathFromId (int $a_container_id, string $a_name)
 
static _copyDirectory (string $a_sdir, string $a_tdir)
 
- Data Fields inherited from ilFileSystemAbstractionStorage
const STORAGE_WEB = 1
 
const STORAGE_DATA = 2
 
const STORAGE_SECURED = 3
 
- Protected Attributes inherited from ilFileSystemAbstractionStorage
string $path = null
 
ILIAS Filesystem Filesystems $file_system_service
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 24 of file class.ilFSStorageMail.php.

Constructor & Destructor Documentation

◆ __construct()

ilFSStorageMail::__construct ( int  $a_container_id,
int  $a_usr_id 
)

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

References ILIAS\GlobalScreen\Provider\__construct(), and ilFileSystemAbstractionStorage\appendToPath().

27  {
28  parent::__construct(self::STORAGE_DATA, true, $a_container_id);
29 
30  $this->appendToPath('_' . $a_usr_id);
31  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getPathPostfix()

ilFSStorageMail::getPathPostfix ( )
protected

Definition at line 33 of file class.ilFSStorageMail.php.

33  : string
34  {
35  return 'mail';
36  }

◆ getPathPrefix()

ilFSStorageMail::getPathPrefix ( )
protected

Definition at line 38 of file class.ilFSStorageMail.php.

Referenced by getRelativePathExMailDirectory().

38  : string
39  {
40  return 'mail';
41  }
+ Here is the caller graph for this function:

◆ getRelativePathExMailDirectory()

ilFSStorageMail::getRelativePathExMailDirectory ( )

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

References ilFileSystemAbstractionStorage\$path, ilFileSystemAbstractionStorage\getAbsolutePath(), ilFileUtils\getDataDir(), getPathPrefix(), ilFileSystemAbstractionStorage\getStorageType(), ilFileUtils\getWebspaceDir(), and ilFileUtils\removeTrailingPathSeparators().

43  : string
44  {
45  $path = '';
46  switch ($this->getStorageType()) {
47  case self::STORAGE_DATA:
49  break;
50 
51  case self::STORAGE_WEB:
53  break;
54  }
56  $path .= '/';
57 
58  $path .= ($this->getPathPrefix() . '/');
59 
60  return str_replace($path, '', $this->getAbsolutePath());
61  }
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static removeTrailingPathSeparators(string $path)
static getDataDir()
get data directory (outside webspace)
getAbsolutePath()
Calculates the full path on the filesystem.
+ Here is the call graph for this function:

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