ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class LegacyPathHelper. More...
Static Public Member Functions | |
static | deriveLocationFrom (string $absolute_path) |
static | deriveFilesystemFrom (string $absolute_path) |
Tries to fetch the filesystem responsible for the absolute path. More... | |
static | createRelativePath (string $absolute_path) |
Creates a relative path from an absolute path which starts with a valid storage location. More... | |
Static Private Member Functions | |
static | resolveRelativePath (string $possible_path, string $absolute_path) |
static | checkPossiblePath (string $possible_path, string $absolute_path) |
static | listPaths () |
Class LegacyPathHelper.
The legacy path helper provides convenient functions for the integration of the filesystem service within legacy components. This class should be deprecated with ILIAS 5.5 or earlier.
Definition at line 37 of file LegacyPathHelper.php.
|
staticprivate |
string | $possible_path | |
string | $absolute_path |
Definition at line 228 of file LegacyPathHelper.php.
|
static |
Creates a relative path from an absolute path which starts with a valid storage location.
The primary use case for this method is to trim the path after the filesystem was fetch via the deriveFilesystemFrom method.
string | $absolute_path | The path which should be trimmed. |
Definition at line 144 of file LegacyPathHelper.php.
Referenced by LegacyPathHelperHelper\createRelativePath(), ilFileSystemAbstractionStorage\createRelativePathForFileSystem(), ILIAS\MediaCast\BackgroundTasks\DownloadAllZipInteraction\interaction(), ILIAS\ResourceStorage\StorageHandler\FileSystemBased\AbstractFileSystemStorageHandler\storeStream(), ILIAS\Filesystem\Util\LegacyPathHelperTest\testCreateRelativePathWithInvalidTargetWhichShouldFail(), ILIAS\Filesystem\Util\LegacyPathHelperTest\testCreateRelativePathWithStorageTargetWhichShouldSucceed(), and ILIAS\Filesystem\Util\LegacyPathHelperTest\testCreateRelativePathWithWebTargetWhichShouldSucceed().
|
static |
Tries to fetch the filesystem responsible for the absolute path.
Please note that the function is case sensitive.
Relative paths are also detected for the ILIAS web storage like './data/default'
string | $absolute_path | The absolute used for the filesystem search. |
Definition at line 87 of file LegacyPathHelper.php.
References ILIAS\Filesystem\filesystems().
Referenced by ILIAS\Filesystem\Util\LegacyPathHelperTest\testDeriveFilesystemFromWithAbsoluteLibsTargetWhichShouldSucceed(), ILIAS\Filesystem\Util\LegacyPathHelperTest\testDeriveFilesystemFromWithInvalidTargetWhichShouldFail(), ILIAS\Filesystem\Util\LegacyPathHelperTest\testDeriveFilesystemFromWithRelativeLibsTargetWhichShouldSucceed(), ILIAS\Filesystem\Util\LegacyPathHelperTest\testDeriveFilesystemFromWithStorageTargetWhichShouldSucceed(), and ILIAS\Filesystem\Util\LegacyPathHelperTest\testDeriveFilesystemFromWithWebTargetWhichShouldSucceed().
|
static |
Definition at line 41 of file LegacyPathHelper.php.
Referenced by ILIAS\ResourceStorage\StorageHandler\FileSystemBased\AbstractFileSystemStorageHandler\storeStream().
|
staticprivate |
Definition at line 250 of file LegacyPathHelper.php.
References CLIENT_DATA_DIR, CLIENT_ID, CLIENT_WEB_DIR, and ILIAS_WEB_DIR.
|
staticprivate |
Definition at line 198 of file LegacyPathHelper.php.