ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_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 {
61 break;
62
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?>
__construct($a_container_id, $a_usr_id)
Constructor.
getPathPrefix()
Implementation of abstract method.
getPathPostfix()
Implementation of abstract method.
getAbsolutePath()
Get absolute path of storage directory.
static getDataDir()
get data directory (outside webspace)
static getWebspaceDir($mode="filesystem")
get webspace directory
static removeTrailingPathSeparators($path)