ILIAS  Release_3_10_x_branch Revision 61812
 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 12808 2006-12-08 18:04:21Z akill

Definition at line 33 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 68 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 55 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 47 of file class.ilFile.php.

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


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