ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilFile.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
13 class ilFile
14 {
20  public $path;
21 
27  public $ilias;
28 
29 
35  public function __construct()
36  {
37  global $DIC;
38  $ilias = $DIC['ilias'];
39 
40  $this->ilias = &$ilias;
41  }
42 
49  public function deleteTrailingSlash($a_path)
50  {
51  // DELETE TRAILING '/'
52  if (substr($a_path, -1) == '/' or substr($a_path, -1) == "\\") {
53  $a_path = substr($a_path, 0, -1);
54  }
55 
56  return $a_path;
57  }
58 }
global $DIC
Definition: saml.php:7
__construct()
Constructor get ilias object public.
deleteTrailingSlash($a_path)
delete trailing slash of path variables
redirection script todo: (a better solution should control the processing via a xml file) ...
Base class for all file (directory) operations This class is abstract and needs to be extended...