ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilFSStorageMailMailMigration Class Reference
+ Inheritance diagram for ilFSStorageMailMailMigration:
+ Collaboration diagram for ilFSStorageMailMailMigration:

Public Member Functions

 __construct ($a_container_id, $a_usr_id)
 Constructor. More...
 
 getRelativePathExMailDirectory ()
 
- Public Member Functions inherited from ilFileSystemStorageMailMigration
 __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 ()
 

Protected Member Functions

 getPathPostfix ()
 Implementation of abstract method. More...
 
 getPathPrefix ()
 Implementation of abstract method. 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 ilFileSystemStorageMailMigration
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...
 
 _copyDirectory ($a_source, $a_target)
 Copy directory and all contents. More...
 
- Data Fields inherited from ilFileSystemStorageMailMigration
const STORAGE_WEB = 1
 
const STORAGE_DATA = 2
 
const FACTOR = 100
 
const MAX_EXPONENT = 3
 

Detailed Description

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

Definition at line 32 of file class.ilFSStorageMailMailMigration.php.

Constructor & Destructor Documentation

◆ __construct()

ilFSStorageMailMailMigration::__construct (   $a_container_id,
  $a_usr_id 
)

Constructor.

@access public

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

Definition at line 43 of file class.ilFSStorageMailMailMigration.php.

44 {
45 $this->usr_id = $a_usr_id;
46
47 parent::__construct(self::STORAGE_DATA,true,$a_container_id);
48
49 $this->appendToPath('_'.$this->usr_id);
50 }

References ilFileSystemStorageMailMigration\appendToPath().

+ Here is the call graph for this function:

Member Function Documentation

◆ getPathPostfix()

ilFSStorageMailMailMigration::getPathPostfix ( )
protected

Implementation of abstract method.

@access protected

Reimplemented from ilFileSystemStorageMailMigration.

Definition at line 58 of file class.ilFSStorageMailMailMigration.php.

59 {
60 return 'mail';
61 }

◆ getPathPrefix()

ilFSStorageMailMailMigration::getPathPrefix ( )
protected

Implementation of abstract method.

@access protected

Reimplemented from ilFileSystemStorageMailMigration.

Definition at line 69 of file class.ilFSStorageMailMailMigration.php.

70 {
71 return 'mail';
72 }

Referenced by getRelativePathExMailDirectory().

+ Here is the caller graph for this function:

◆ getRelativePathExMailDirectory()

ilFSStorageMailMailMigration::getRelativePathExMailDirectory ( )

Definition at line 74 of file class.ilFSStorageMailMailMigration.php.

75 {
76 switch($this->getStorageType())
77 {
80 break;
81
84 break;
85 }
87 $path .= '/';
88
89 // Append path prefix
90 $path .= ($this->getPathPrefix().'/');
91
92 return str_replace($path, '', $this->getAbsolutePath());
93 }
getPathPrefix()
Implementation of abstract method.
getAbsolutePath()
Get absolute path of storage directory.

References ilFileSystemStorageMailMigration\$path, ilFileSystemStorageMailMigration\getAbsolutePath(), ilUpdateUtilsMailMigration\getDataDir(), getPathPrefix(), ilFileSystemStorageMailMigration\getStorageType(), ilUpdateUtilsMailMigration\getWebspaceDir(), ilUpdateUtilsMailMigration\removeTrailingPathSeparators(), ilFileSystemStorageMailMigration\STORAGE_DATA, and ilFileSystemStorageMailMigration\STORAGE_WEB.

+ Here is the call graph for this function:

Field Documentation

◆ $usr_id

ilFSStorageMailMailMigration::$usr_id = 0
private

Definition at line 34 of file class.ilFSStorageMailMailMigration.php.


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