ILIAS  release_8 Revision v8.24
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 ()
 Get directory name. More...
 
 getPathPrefix ()
 Get path prefix. More...
 
- 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.

27 {
28 parent::__construct(self::STORAGE_DATA, true, $a_container_id);
29
30 $this->appendToPath('_' . $a_usr_id);
31 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getPathPostfix()

ilFSStorageMail::getPathPostfix ( )
protected

Get directory name.

E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically

Reimplemented from ilFileSystemAbstractionStorage.

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

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

◆ getPathPrefix()

ilFSStorageMail::getPathPrefix ( )
protected

Get path prefix.

Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files

Reimplemented from ilFileSystemAbstractionStorage.

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

38 : string
39 {
40 return 'mail';
41 }

Referenced by getRelativePathExMailDirectory().

+ Here is the caller graph for this function:

◆ getRelativePathExMailDirectory()

ilFSStorageMail::getRelativePathExMailDirectory ( )

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

43 : string
44 {
45 $path = '';
46 switch ($this->getStorageType()) {
49 break;
50
53 break;
54 }
56 $path .= '/';
57
58 $path .= ($this->getPathPrefix() . '/');
59
60 return str_replace($path, '', $this->getAbsolutePath());
61 }
getPathPrefix()
Get path prefix.
getAbsolutePath()
Calculates the full path on the filesystem.
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static getDataDir()
get data directory (outside webspace)
static removeTrailingPathSeparators(string $path)

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

+ Here is the call graph for this function:

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