ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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'
);
13
class
ilFSStorageMail
extends
ilFileSystemStorage
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
55
public
function
getRelativePathExMailDirectory
()
56
{
57
switch
($this->
getStorageType
())
58
{
59
case
self::STORAGE_DATA:
60
$path
=
ilUtil::getDataDir
();
61
break
;
62
63
case
self::STORAGE_WEB:
64
$path
=
ilUtil::getWebspaceDir
();
65
break
;
66
}
67
$path
=
ilUtil::removeTrailingPathSeparators
(
$path
);
68
$path
.=
'/'
;
69
70
// Append path prefix
71
$path
.= ($this->
getPathPrefix
().
'/'
);
72
73
return
str_replace(
$path
,
''
, $this->
getAbsolutePath
());
74
}
75
}
76
?>
Services
Mail
classes
class.ilFSStorageMail.php
Generated on Sat Apr 30 2016 19:01:02 for ILIAS by
1.8.1.2 (using
Doxyfile
)