ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilFile Class Reference

Base class for all file (directory) operations This class is abstract and needs to be extended. More...

+ Inheritance diagram for ilFile:
+ Collaboration diagram for ilFile:

Public Member Functions

 __construct ()
 Constructor get ilias object @access public. More...
 
 deleteTrailingSlash ($a_path)
 delete trailing slash of path variables More...
 

Data Fields

 $path
 
 $ilias
 

Detailed Description

Base class for all file (directory) operations This class is abstract and needs to be extended.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilFile::__construct ( )

Constructor get ilias object @access public.

Reimplemented in ilFileData, ilFileDataImport, and ilFileDataImportMail.

Definition at line 35 of file class.ilFile.php.

36 {
37 global $DIC;
38 $ilias = $DIC['ilias'];
39
40 $this->ilias = &$ilias;
41 }
redirection script todo: (a better solution should control the processing via a xml file)
$DIC
Definition: xapitoken.php:46

References $DIC, and $ilias.

Member Function Documentation

◆ deleteTrailingSlash()

ilFile::deleteTrailingSlash (   $a_path)

delete trailing slash of path variables

Parameters
stringpath @access public
Returns
string path

Definition at line 49 of file class.ilFile.php.

50 {
51 // DELETE TRAILING '/'
52 if (substr($a_path, -1) == '/' or substr($a_path, -1) == "\\") {
53 $a_path = substr($a_path, 0, -1);
54 }
55
56 return $a_path;
57 }

Referenced by ilSetup\__construct(), ilSetup\checkDataDirSetup(), ilSetup\checkErrorLogSetup(), ilSetup\checkLogSetup(), ilSetup\saveMasterSetup(), and ilSetup\updateMasterSettings().

+ Here is the caller graph for this function:

Field Documentation

◆ $ilias

ilFile::$ilias

Definition at line 27 of file class.ilFile.php.

Referenced by __construct().

◆ $path


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