ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
StringToHttpPath.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\HTTP\Path
;
22
23
use
ILIAS\Data\URI
;
24
28
trait StringToHttpPath
29
{
30
private
function
toHttpPath(?
string
$http_path): ?URI
31
{
32
if
($http_path ===
null
|| trim($http_path) ===
''
) {
33
return
null
;
34
}
35
try
{
36
return
new
URI(rtrim(trim($http_path),
'/'
));
37
}
catch
(\InvalidArgumentException|\TypeError) {
38
return
null
;
39
}
40
}
41
}
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:35
ILIAS\HTTP\Path
Definition:
ArtifactHttpPathProvider.php:21
components
ILIAS
HTTP
src
Path
StringToHttpPath.php
Generated on Wed Nov 11 2026 23:07:23 for ILIAS by
1.9.4 (using
Doxyfile
)