ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
The legacy path helper provides convenient functions for the integration of the filesystem service within legacy components. 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 () |
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 34 of file LegacyPathHelper.php.
|
staticprivate |
Definition at line 201 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 131 of file LegacyPathHelper.php.
Referenced by ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImage\createFromImportDir(), LegacyPathHelperHelper\createRelativePath(), ILIAS\Repository\IRSS\IRSSWrapper\importFilesFromDirectoryToCollection(), ILIAS\Repository\IRSS\IRSSWrapper\importLocalFile(), 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 './public/data/default'
string | $absolute_path | The absolute used for the filesystem search. |
Definition at line 84 of file LegacyPathHelper.php.
References ILIAS\Filesystem\filesystems().
Referenced by ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImage\createFromImportDir(), ILIAS\Repository\IRSS\IRSSWrapper\importFilesFromDirectoryToCollection(), ILIAS\Repository\IRSS\IRSSWrapper\importLocalFile(), 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 38 of file LegacyPathHelper.php.
Referenced by ILIAS\ResourceStorage\StorageHandler\FileSystemBased\AbstractFileSystemStorageHandler\storeStream().
|
staticprivate |
Definition at line 217 of file LegacyPathHelper.php.
References CLIENT_DATA_DIR, CLIENT_ID, CLIENT_WEB_DIR, and ILIAS_WEB_DIR.
|
staticprivate |
Definition at line 181 of file LegacyPathHelper.php.