ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilFSStorageMail.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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()) {
44  case self::STORAGE_DATA:
46  break;
47 
48  case self::STORAGE_WEB:
50  break;
51  }
53  $path .= '/';
54 
55  $path .= ($this->getPathPrefix() . '/');
56 
57  return str_replace($path, '', $this->getAbsolutePath());
58  }
59 }
static getWebspaceDir(string $mode="filesystem")
get webspace directory
__construct(int $a_container_id, int $a_usr_id)
static removeTrailingPathSeparators(string $path)
static getDataDir()
get data directory (outside webspace)
getAbsolutePath()
Calculates the full path on the filesystem.
__construct(Container $dic, ilPlugin $plugin)