ILIAS  release_8 Revision v8.23
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

 deleteTrailingSlash (string $a_path)
 delete trailing slash of path variables More...
 

Protected Attributes

string $path
 

Detailed Description

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

Deprecated:

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

Member Function Documentation

◆ deleteTrailingSlash()

ilFile::deleteTrailingSlash ( string  $a_path)

delete trailing slash of path variables

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

28  : string
29  {
30  // DELETE TRAILING '/'
31  if (substr($a_path, -1) == '/' or substr($a_path, -1) == "\\") {
32  $a_path = substr($a_path, 0, -1);
33  }
34 
35  return $a_path;
36  }

Field Documentation

◆ $path


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