ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilFSStorageMail Class Reference
+ Inheritance diagram for ilFSStorageMail:
+ Collaboration diagram for ilFSStorageMail:

Public Member Functions

 __construct ($a_container_id, $a_usr_id)
 Constructor. More...
 
 getRelativePathExMailDirectory ()
 
- Public Member Functions inherited from ilFileSystemStorage
 __construct ($a_storage_type, $a_path_conversion, $a_container_id)
 Constructor. More...
 
 getContainerId ()
 
 create ()
 Create directory. More...
 
 getAbsolutePath ()
 Get absolute path of storage directory. More...
 
 writeToFile ($a_data, $a_absolute_path)
 Write data to file. More...
 
 deleteFile ($a_abs_name)
 Delete file. More...
 
 deleteDirectory ($a_abs_name)
 Delete directory. More...
 
 delete ()
 Delete complete directory. More...
 
 copyFile ($a_from, $a_to)
 Copy files. More...
 
 appendToPath ($a_appendix)
 
 getStorageType ()
 
 getPath ()
 Get path. More...
 
 __construct ($a_storage_type, $a_path_conversion, $a_container_id)
 Constructor. More...
 
 create ()
 Create directory. More...
 
 getAbsolutePath ()
 Get absolute path of storage directory. More...
 
 getShortPath ()
 
 rename ($from, $to)
 

Protected Member Functions

 getPathPostfix ()
 Implementation of abstract method. More...
 
 getPathPrefix ()
 Implementation of abstract method. More...
 
- Protected Member Functions inherited from ilFileSystemStorage
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
 init ()
 Read path info. More...
 
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 

Private Attributes

 $usr_id = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFileSystemStorage
static _createPathFromId ($a_container_id, $a_name)
 Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More...
 
static _copyDirectory ($a_source, $a_target)
 Copy directory and all contents. More...
 
static _createPathFromId ($a_container_id, $a_name)
 Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More...
 
- Data Fields inherited from ilFileSystemStorage
const STORAGE_WEB = 1
 
const STORAGE_DATA = 2
 
const STORAGE_SECURED = 3
 
const FACTOR = 100
 
const MAX_EXPONENT = 3
 
const SECURED_DIRECTORY = "sec"
 
- Protected Attributes inherited from ilFileSystemStorage
 $path
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 13 of file class.ilFSStorageMail.php.

Constructor & Destructor Documentation

◆ __construct()

ilFSStorageMail::__construct (   $a_container_id,
  $a_usr_id 
)

Constructor.

public

Parameters
intobject id of container (e.g file_id or mob_id)

Definition at line 24 of file class.ilFSStorageMail.php.

References ilFileSystemStorage\appendToPath().

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  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getPathPostfix()

ilFSStorageMail::getPathPostfix ( )
protected

Implementation of abstract method.

protected

Definition at line 39 of file class.ilFSStorageMail.php.

40  {
41  return 'mail';
42  }

◆ getPathPrefix()

ilFSStorageMail::getPathPrefix ( )
protected

Implementation of abstract method.

protected

Definition at line 50 of file class.ilFSStorageMail.php.

Referenced by getRelativePathExMailDirectory().

51  {
52  return 'mail';
53  }
+ Here is the caller graph for this function:

◆ getRelativePathExMailDirectory()

ilFSStorageMail::getRelativePathExMailDirectory ( )

Definition at line 55 of file class.ilFSStorageMail.php.

References ilFileSystemStorage\$path, ilFileSystemStorage\getAbsolutePath(), ilUtil\getDataDir(), getPathPrefix(), ilFileSystemStorage\getStorageType(), ilUtil\getWebspaceDir(), and ilUtil\removeTrailingPathSeparators().

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  }
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
+ Here is the call graph for this function:

Field Documentation

◆ $usr_id

ilFSStorageMail::$usr_id = 0
private

Definition at line 15 of file class.ilFSStorageMail.php.


The documentation for this class was generated from the following file: