ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
path2class.func.php
Go to the documentation of this file.
1
<?
php
2
3
function
path2class
(
$path
)
4
{
5
$temp =
$path
;
6
$temp = str_replace(
'./'
,
''
, $temp);
// remove leading './'
7
$temp = str_replace(
'.\\'
,
''
, $temp);
// remove leading '.\'
8
$temp = str_replace(
'\\'
,
'_'
, $temp);
// normalize \ to _
9
$temp = str_replace(
'/'
,
'_'
, $temp);
// normalize / to _
10
while
(strpos($temp,
'__'
) !==
false
) $temp = str_replace(
'__'
,
'_'
, $temp);
11
$temp = str_replace(
'.php'
,
''
, $temp);
12
return
$temp;
13
}
14
15
// vim: et sw=4 sts=4
$path
$path
Definition:
aliased.php:25
path2class
path2class($path)
Definition:
path2class.func.php:3
php
libs
composer
vendor
ezyang
htmlpurifier
tests
path2class.func.php
Generated on Fri Jan 31 2025 19:00:48 for ILIAS by
1.8.13 (using
Doxyfile
)