ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFSStorageMail Class Reference
+ Inheritance diagram for ilFSStorageMail:
+ Collaboration diagram for ilFSStorageMail:

Public Member Functions

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

Protected Member Functions

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

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.
 _copyDirectory ($a_source, $a_target)
 Copy directory and all contents.
static _createPathFromId ($a_container_id, $a_name)
 Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5.
- 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

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().

{
$this->usr_id = $a_usr_id;
parent::__construct(self::STORAGE_DATA,true,$a_container_id);
$this->appendToPath('_'.$this->usr_id);
}

+ Here is the call graph for this function:

Member Function Documentation

ilFSStorageMail::getPathPostfix ( )
protected

Implementation of abstract method.

protected

Reimplemented from ilFileSystemStorage.

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

{
return 'mail';
}
ilFSStorageMail::getPathPrefix ( )
protected

Implementation of abstract method.

protected

Reimplemented from ilFileSystemStorage.

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

Referenced by getRelativePathExMailDirectory().

{
return 'mail';
}

+ Here is the caller graph for this function:

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().

{
switch($this->getStorageType())
{
case self::STORAGE_DATA:
break;
case self::STORAGE_WEB:
break;
}
$path .= '/';
// Append path prefix
$path .= ($this->getPathPrefix().'/');
return str_replace($path, '', $this->getAbsolutePath());
}

+ Here is the call graph for this function:

Field Documentation

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: