ILIAS  release_8 Revision v8.24
class.ilFSStorageMail.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public function __construct(int $a_container_id, int $a_usr_id)
27 {
28 parent::__construct(self::STORAGE_DATA, true, $a_container_id);
29
30 $this->appendToPath('_' . $a_usr_id);
31 }
32
33 protected function getPathPostfix(): string
34 {
35 return 'mail';
36 }
37
38 protected function getPathPrefix(): string
39 {
40 return 'mail';
41 }
42
43 public function getRelativePathExMailDirectory(): 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 }
62}
getPathPrefix()
Get path prefix.
__construct(int $a_container_id, int $a_usr_id)
getPathPostfix()
Get directory name.
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)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc