ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilFile Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Base class for all file (directory) operations This class is abstract and needs to be extended

Deprecated:
Will be removed in ILIAS 10.

Use ILIAS ResourceStorageService as replacement.

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

Member Function Documentation

◆ deleteTrailingSlash()

ilFile::deleteTrailingSlash ( string  $a_path)

delete trailing slash of path variables

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

31  : string
32  {
33  // DELETE TRAILING '/'
34  if (str_ends_with($a_path, '/') || str_ends_with($a_path, "\\")) {
35  return substr($a_path, 0, -1);
36  }
37 
38  return $a_path;
39  }

Field Documentation

◆ $path


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