ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

 ilFile ()
 Constructor get ilias object public.
 deleteTrailingSlash ($a_path)
 delete trailing slash of path variables

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 smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
Id:
class.ilFile.php 20150 2009-06-08 18:02:33Z akill

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

Member Function Documentation

ilFile::deleteTrailingSlash (   $a_path)

delete trailing slash of path variables

Parameters
stringpath public
Returns
string path

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

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

{
// DELETE TRAILING '/'
if (substr($a_path,-1) == '/' or substr($a_path,-1) == "\\")
{
$a_path = substr($a_path,0,-1);
}
return $a_path;
}

+ Here is the caller graph for this function:

ilFile::ilFile ( )

Constructor get ilias object public.

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

References $ilias.

Referenced by ilFileData\ilFileData().

{
global $ilias;
$this->ilias = &$ilias;
}

+ Here is the caller graph for this function:

Field Documentation

ilFile::$ilias

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

Referenced by ilFile(), and ilFileDataGroup\ilFileDataGroup().


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