ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (protected DataService $data) | |
createEmptyCollection () | |
getCollectionForIdString (string $rcid) | |
deleteCollectionForIdString (string $rcid, ResourceStakeholder $stakeholder) | |
importFilesFromLegacyUploadToCollection (ResourceCollection $collection, array $file_input, ResourceStakeholder $stakeholder) | |
importFilesFromDirectoryToCollection (ResourceCollection $collection, string $directory, ResourceStakeholder $stakeholder) | |
getResourceIdForIdString (string $rid) | |
importFileFromLegacyUpload (array $file_input, ResourceStakeholder $stakeholder) | |
importFileFromUploadResult (UploadResult $result, ResourceStakeholder $stakeholder) | |
importLocalFile (string $file, string $name, ResourceStakeholder $stakeholder) | |
importStream (Stream $stream, ResourceStakeholder $stakeholder) | |
renameCurrentRevision (string $rid, string $title) | |
deliverFile (string $rid) | |
stream (string $rid) | |
getResourcePath (string $rid) | |
getResource (string $rid) | |
getCollectionResourcesInfo (ResourceCollection $collection) | |
getResourceInfo (string $rid) | |
clone (string $from_rc_id) | |
cloneResource (string $from_rid) | |
cloneContainer (string $from_rid) | |
deleteResource (string $rid, ResourceStakeholder $stakeholder) | |
addEntryOfZipResourceToCollection (string $rid, string $entry, ResourceCollection $target_collection, ResourceStakeholder $target_stakeholder) | |
getStreamOfContainerEntry (string $rid, string $entry) | |
getContainerEntryInfo (string $container_id, string $path) | |
deliverContainerEntry (string $container_id, string $path) | |
hasContainerEntry (string $rid, string $entry) | |
Is there a better way to check this? More... | |
getContainerStreams (string $container_id, ResourceStakeholder $stakeholder) | |
getContainerPaths (string $container_id) | |
getContainerEntries (string $container_id) | |
getContainerEntriesOfPath (string $container_id, string $dir_path) | |
addContainerDirToTargetContainer (string $source_container_id, string $target_container_id, string $source_dir_path="", string $target_dir_path="") | |
createContainer (ResourceStakeholder $stakeholder, string $title="container.zip") | |
createContainerFromLocalZip (string $local_zip_path, ResourceStakeholder $stakeholder) | |
createContainerFromLocalDir (string $local_dir_path, ResourceStakeholder $stakeholder, string $container_path="", bool $recursive=true, string $title="container.zip") | |
addLocalFileToContainer (string $rid, string $fullpath, string $path) | |
addStringToContainer (string $rid, string $content, string $path) | |
addDirectoryToContainer (string $rid, string $source_dir, string $target_path="") | |
addUploadToContainer (string $rid, UploadResult $result) | |
getContainerUri (string $rid, string $path) | |
getContainerZip (string $rid) | |
importFileFromLegacyUploadToContainer (string $rid, string $tmp_name, string $target_path) | |
importFileFromUploadResultToContainer (string $rid, UploadResult $result, string $target_path) | |
addStreamToContainer (string $rid, FileStream $stream, string $path) | |
removePathFromContainer (string $rid, string $path) | |
renameContainer (string $rid, string $title) | |
Protected Member Functions | |
getNewCollectionId () | |
getNewCollectionIdAsString () | |
Protected Attributes | |
$filesystems | |
ILIAS FileDelivery Services | $file_delivery |
ILIAS FileUpload FileUpload | $upload |
ILIAS ResourceStorage Services | $irss |
Archives | $archives |
Definition at line 41 of file IRSSWrapper.php.
ILIAS\Repository\IRSS\IRSSWrapper::__construct | ( | protected DataService | $data | ) |
Definition at line 49 of file IRSSWrapper.php.
References $DIC, ILIAS\Filesystem\filesystems(), and ILIAS\Repository\upload().
ILIAS\Repository\IRSS\IRSSWrapper::addContainerDirToTargetContainer | ( | string | $source_container_id, |
string | $target_container_id, | ||
string | $source_dir_path = "" , |
||
string | $target_dir_path = "" |
||
) |
Definition at line 538 of file IRSSWrapper.php.
References $path, ILIAS\Repository\IRSS\IRSSWrapper\addStreamToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString(), and ILIAS\Repository\IRSS\IRSSWrapper\getStreamOfContainerEntry().
ILIAS\Repository\IRSS\IRSSWrapper::addDirectoryToContainer | ( | string | $rid, |
string | $source_dir, | ||
string | $target_path = "" |
||
) |
Definition at line 672 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\addLocalFileToContainer().
ILIAS\Repository\IRSS\IRSSWrapper::addEntryOfZipResourceToCollection | ( | string | $rid, |
string | $entry, | ||
ResourceCollection | $target_collection, | ||
ResourceStakeholder | $target_stakeholder | ||
) |
Definition at line 388 of file IRSSWrapper.php.
References ILIAS\Export\ImportHandler\Parser\NodeInfo\Collection\ResourceCollection\add(), and ILIAS\Repository\IRSS\IRSSWrapper\getStreamOfContainerEntry().
ILIAS\Repository\IRSS\IRSSWrapper::addLocalFileToContainer | ( | string | $rid, |
string | $fullpath, | ||
string | $path | ||
) |
Definition at line 636 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\addDirectoryToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\createContainerFromLocalDir(), and ILIAS\Repository\IRSS\IRSSWrapper\importFileFromLegacyUploadToContainer().
ILIAS\Repository\IRSS\IRSSWrapper::addStreamToContainer | ( | string | $rid, |
FileStream | $stream, | ||
string | $path | ||
) |
Definition at line 805 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\addContainerDirToTargetContainer().
ILIAS\Repository\IRSS\IRSSWrapper::addStringToContainer | ( | string | $rid, |
string | $content, | ||
string | $path | ||
) |
Definition at line 653 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::addUploadToContainer | ( | string | $rid, |
UploadResult | $result | ||
) |
Definition at line 702 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::clone | ( | string | $from_rc_id | ) |
Definition at line 348 of file IRSSWrapper.php.
ILIAS\Repository\IRSS\IRSSWrapper::cloneContainer | ( | string | $from_rid | ) |
Definition at line 368 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::cloneResource | ( | string | $from_rid | ) |
Definition at line 358 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::createContainer | ( | ResourceStakeholder | $stakeholder, |
string | $title = "container.zip" |
||
) |
Definition at line 559 of file IRSSWrapper.php.
References ilFileUtils\delDir(), ILIAS\Filesystem\filesystems(), and ilFileUtils\ilTempnam().
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\createContainerFromLocalDir().
ILIAS\Repository\IRSS\IRSSWrapper::createContainerFromLocalDir | ( | string | $local_dir_path, |
ResourceStakeholder | $stakeholder, | ||
string | $container_path = "" , |
||
bool | $recursive = true , |
||
string | $title = "container.zip" |
||
) |
Definition at line 600 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\addLocalFileToContainer(), and ILIAS\Repository\IRSS\IRSSWrapper\createContainer().
ILIAS\Repository\IRSS\IRSSWrapper::createContainerFromLocalZip | ( | string | $local_zip_path, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 586 of file IRSSWrapper.php.
ILIAS\Repository\IRSS\IRSSWrapper::createEmptyCollection | ( | ) |
Definition at line 75 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getNewCollectionId().
ILIAS\Repository\IRSS\IRSSWrapper::deleteCollectionForIdString | ( | string | $rcid, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 88 of file IRSSWrapper.php.
References $id.
ILIAS\Repository\IRSS\IRSSWrapper::deleteResource | ( | string | $rid, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 378 of file IRSSWrapper.php.
References $res, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::deliverContainerEntry | ( | string | $container_id, |
string | $path | ||
) |
Definition at line 430 of file IRSSWrapper.php.
References $info, ILIAS\components\ResourceStorage\Container\Wrapper\ZipReader\getItem(), and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::deliverFile | ( | string | $rid | ) |
Definition at line 275 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getCollectionForIdString | ( | string | $rcid | ) |
Definition at line 83 of file IRSSWrapper.php.
ILIAS\Repository\IRSS\IRSSWrapper::getCollectionResourcesInfo | ( | ResourceCollection | $collection | ) |
Definition at line 311 of file IRSSWrapper.php.
References $info, and ILIAS\Export\ImportHandler\Parser\NodeInfo\Collection\ResourceCollection\getResourceIdentifications().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerEntries | ( | string | $container_id | ) |
Definition at line 511 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString(), and ILIAS\components\ResourceStorage\Container\Wrapper\ZipReader\getStructure().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerEntriesOfPath | ( | string | $container_id, |
string | $dir_path | ||
) |
Definition at line 520 of file IRSSWrapper.php.
References $path, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerEntryInfo | ( | string | $container_id, |
string | $path | ||
) |
Definition at line 420 of file IRSSWrapper.php.
References ILIAS\components\ResourceStorage\Container\Wrapper\ZipReader\getItem(), and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerPaths | ( | string | $container_id | ) |
Definition at line 501 of file IRSSWrapper.php.
References $path, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerStreams | ( | string | $container_id, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 490 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerUri | ( | string | $rid, |
string | $path | ||
) |
Definition at line 714 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getContainerZip | ( | string | $rid | ) |
Definition at line 729 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
|
protected |
Definition at line 65 of file IRSSWrapper.php.
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\createEmptyCollection(), and ILIAS\Repository\IRSS\IRSSWrapper\getNewCollectionIdAsString().
|
protected |
Definition at line 70 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\getNewCollectionId().
ILIAS\Repository\IRSS\IRSSWrapper::getResource | ( | string | $rid | ) |
Definition at line 302 of file IRSSWrapper.php.
References $id, ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString(), and null.
ILIAS\Repository\IRSS\IRSSWrapper::getResourceIdForIdString | ( | string | $rid | ) |
Definition at line 178 of file IRSSWrapper.php.
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\addContainerDirToTargetContainer(), ILIAS\Repository\IRSS\IRSSWrapper\addLocalFileToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\addStreamToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\addStringToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\addUploadToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\cloneContainer(), ILIAS\Repository\IRSS\IRSSWrapper\cloneResource(), ILIAS\Repository\IRSS\IRSSWrapper\deleteResource(), ILIAS\Repository\IRSS\IRSSWrapper\deliverContainerEntry(), ILIAS\Repository\IRSS\IRSSWrapper\deliverFile(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerEntries(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerEntriesOfPath(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerEntryInfo(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerPaths(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerStreams(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerUri(), ILIAS\Repository\IRSS\IRSSWrapper\getContainerZip(), ILIAS\Repository\IRSS\IRSSWrapper\getResource(), ILIAS\Repository\IRSS\IRSSWrapper\getResourceInfo(), ILIAS\Repository\IRSS\IRSSWrapper\importFileFromLegacyUploadToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\importFileFromUploadResultToContainer(), ILIAS\Repository\IRSS\IRSSWrapper\removePathFromContainer(), ILIAS\Repository\IRSS\IRSSWrapper\renameContainer(), ILIAS\Repository\IRSS\IRSSWrapper\renameCurrentRevision(), and ILIAS\Repository\IRSS\IRSSWrapper\stream().
ILIAS\Repository\IRSS\IRSSWrapper::getResourceInfo | ( | string | $rid | ) |
Definition at line 330 of file IRSSWrapper.php.
References $info, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::getResourcePath | ( | string | $rid | ) |
Definition at line 293 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\stream().
ILIAS\Repository\IRSS\IRSSWrapper::getStreamOfContainerEntry | ( | string | $rid, |
string | $entry | ||
) |
Definition at line 409 of file IRSSWrapper.php.
References ILIAS\Filesystem\Stream\Streams\ofFileInsideZIP(), and ILIAS\Repository\IRSS\IRSSWrapper\stream().
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\addContainerDirToTargetContainer(), and ILIAS\Repository\IRSS\IRSSWrapper\addEntryOfZipResourceToCollection().
ILIAS\Repository\IRSS\IRSSWrapper::hasContainerEntry | ( | string | $rid, |
string | $entry | ||
) |
Is there a better way to check this?
Definition at line 450 of file IRSSWrapper.php.
References Vendor\Package\$e, ILIAS\Filesystem\Stream\Streams\ofFileInsideZIP(), and ILIAS\Repository\IRSS\IRSSWrapper\stream().
ILIAS\Repository\IRSS\IRSSWrapper::importFileFromLegacyUpload | ( | array | $file_input, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 183 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\$upload.
ILIAS\Repository\IRSS\IRSSWrapper::importFileFromLegacyUploadToContainer | ( | string | $rid, |
string | $tmp_name, | ||
string | $target_path | ||
) |
Definition at line 740 of file IRSSWrapper.php.
References $id, ILIAS\Repository\IRSS\IRSSWrapper\$upload, ILIAS\Repository\IRSS\IRSSWrapper\addLocalFileToContainer(), and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::importFileFromUploadResult | ( | UploadResult | $result, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 214 of file IRSSWrapper.php.
References ILIAS\FileUpload\DTO\UploadResult\isOK().
ILIAS\Repository\IRSS\IRSSWrapper::importFileFromUploadResultToContainer | ( | string | $rid, |
UploadResult | $result, | ||
string | $target_path | ||
) |
Definition at line 784 of file IRSSWrapper.php.
References $id, ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString(), and ILIAS\FileUpload\DTO\UploadResult\isOK().
ILIAS\Repository\IRSS\IRSSWrapper::importFilesFromDirectoryToCollection | ( | ResourceCollection | $collection, |
string | $directory, | ||
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 146 of file IRSSWrapper.php.
References Vendor\Package\$e, ILIAS\Export\ImportHandler\Parser\NodeInfo\Collection\ResourceCollection\add(), ILIAS\Filesystem\Util\LegacyPathHelper\createRelativePath(), and ILIAS\Filesystem\Util\LegacyPathHelper\deriveFilesystemFrom().
ILIAS\Repository\IRSS\IRSSWrapper::importFilesFromLegacyUploadToCollection | ( | ResourceCollection | $collection, |
array | $file_input, | ||
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 112 of file IRSSWrapper.php.
References ILIAS\Repository\IRSS\IRSSWrapper\$upload, and ILIAS\Export\ImportHandler\Parser\NodeInfo\Collection\ResourceCollection\add().
ILIAS\Repository\IRSS\IRSSWrapper::importLocalFile | ( | string | $file, |
string | $name, | ||
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 231 of file IRSSWrapper.php.
References ILIAS\Filesystem\Util\LegacyPathHelper\createRelativePath(), and ILIAS\Filesystem\Util\LegacyPathHelper\deriveFilesystemFrom().
ILIAS\Repository\IRSS\IRSSWrapper::importStream | ( | Stream | $stream, |
ResourceStakeholder | $stakeholder | ||
) |
Definition at line 252 of file IRSSWrapper.php.
ILIAS\Repository\IRSS\IRSSWrapper::removePathFromContainer | ( | string | $rid, |
string | $path | ||
) |
Definition at line 821 of file IRSSWrapper.php.
References $id, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::renameContainer | ( | string | $rid, |
string | $title | ||
) |
Definition at line 832 of file IRSSWrapper.php.
References $id, $info, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::renameCurrentRevision | ( | string | $rid, |
string | $title | ||
) |
Definition at line 263 of file IRSSWrapper.php.
References $id, $info, and ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString().
ILIAS\Repository\IRSS\IRSSWrapper::stream | ( | string | $rid | ) |
Definition at line 284 of file IRSSWrapper.php.
References $id, ILIAS\Repository\IRSS\IRSSWrapper\getResourceIdForIdString(), and null.
Referenced by ILIAS\Repository\IRSS\IRSSWrapper\getResourcePath(), ILIAS\Repository\IRSS\IRSSWrapper\getStreamOfContainerEntry(), and ILIAS\Repository\IRSS\IRSSWrapper\hasContainerEntry().
|
protected |
Definition at line 47 of file IRSSWrapper.php.
|
protected |
Definition at line 44 of file IRSSWrapper.php.
|
protected |
Definition at line 43 of file IRSSWrapper.php.
|
protected |
Definition at line 46 of file IRSSWrapper.php.
|
protected |