ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 
- Protected Member Functions inherited from ilFileSystemStorageMailMigration
 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.

public

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

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

References ilFileSystemStorageMailMigration\appendToPath().

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

Member Function Documentation

◆ getPathPostfix()

ilFSStorageMailMailMigration::getPathPostfix ( )
protected

Implementation of abstract method.

protected

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

59  {
60  return 'mail';
61  }

◆ getPathPrefix()

ilFSStorageMailMailMigration::getPathPrefix ( )
protected

Implementation of abstract method.

protected

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

Referenced by getRelativePathExMailDirectory().

70  {
71  return 'mail';
72  }
+ Here is the caller graph for this function:

◆ getRelativePathExMailDirectory()

ilFSStorageMailMailMigration::getRelativePathExMailDirectory ( )

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

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

75  {
76  switch($this->getStorageType())
77  {
78  case self::STORAGE_DATA:
80  break;
81 
82  case self::STORAGE_WEB:
84  break;
85  }
87  $path .= '/';
88 
89  // Append path prefix
90  $path .= ($this->getPathPrefix().'/');
91 
92  return str_replace($path, '', $this->getAbsolutePath());
93  }
getAbsolutePath()
Get absolute path of storage directory.
getPathPrefix()
Implementation of abstract method.
+ 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: