ILIAS  Release_4_2_x_branch Revision 61807
 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 meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilFile.php 23143 2010-03-09 12:15:33Z smeyer

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: