ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFSStorageMail.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(int $a_container_id, int $a_usr_id)
24 {
25 parent::__construct(self::STORAGE_DATA, true, $a_container_id);
26
27 $this->appendToPath('_' . $a_usr_id);
28 }
29
30 protected function getPathPostfix(): string
31 {
32 return 'mail';
33 }
34
35 protected function getPathPrefix(): string
36 {
37 return 'mail';
38 }
39
40 public function getRelativePathExMailDirectory(): string
41 {
42 $path = '';
43 switch ($this->getStorageType()) {
46 break;
47
50 break;
51 }
53 $path .= '/';
54
55 $path .= ($this->getPathPrefix() . '/');
56
57 return str_replace($path, '', $this->getAbsolutePath());
58 }
59}
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