ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 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 public.

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

References $DIC, and $ilias.

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

Member Function Documentation

◆ deleteTrailingSlash()

ilFile::deleteTrailingSlash (   $a_path)

delete trailing slash of path variables

Parameters
stringpath public
Returns
string path

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

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

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  }
+ 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: