ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
59  case self::STORAGE_DATA:
61  break;
62 
63  case self::STORAGE_WEB:
65  break;
66  }
68  $path .= '/';
69 
70  // Append path prefix
71  $path .= ($this->getPathPrefix().'/');
72 
73  return str_replace($path, '', $this->getAbsolutePath());
74  }
75 }
76 ?>
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