ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilFSStorageMail.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once('Services/FileSystem/classes/class.ilFileSystemStorage.php');
14 {
15  private $usr_id = 0;
16 
24  public function __construct($a_container_id, $a_usr_id)
25  {
26  $this->usr_id = $a_usr_id;
27 
28  parent::__construct(self::STORAGE_DATA, true, $a_container_id);
29 
30  $this->appendToPath('_' . $this->usr_id);
31  }
32 
39  protected function getPathPostfix()
40  {
41  return 'mail';
42  }
43 
50  protected function getPathPrefix()
51  {
52  return 'mail';
53  }
54 
56  {
57  switch ($this->getStorageType()) {
58  case self::STORAGE_DATA:
60  break;
61 
62  case self::STORAGE_WEB:
64  break;
65  }
67  $path .= '/';
68 
69  // Append path prefix
70  $path .= ($this->getPathPrefix() . '/');
71 
72  return str_replace($path, '', $this->getAbsolutePath());
73  }
74 }
getPathPostfix()
Implementation of abstract method.
__construct($a_container_id, $a_usr_id)
Constructor.
getPathPrefix()
Implementation of abstract method.
static removeTrailingPathSeparators($path)
getAbsolutePath()
Get absolute path of storage directory.
static getDataDir()
get data directory (outside webspace)
static getWebspaceDir($mode="filesystem")
get webspace directory