|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ILIAS\ResourceStorage\Manager\BaseManager:
Collaboration diagram for ILIAS\ResourceStorage\Manager\BaseManager:Public Member Functions | |
| __construct (ResourceBuilder $resource_builder, CollectionBuilder $collection_builder, RepositoryPreloader $preloader) | |
| Manager constructor. More... | |
| publish (ResourceIdentification $rid) | |
| Publish a resource. More... | |
| unpublish (ResourceIdentification $rid) | |
| Unpublish a resource. More... | |
| find (string $identification) | |
| getResource (ResourceIdentification $i) | |
| remove (ResourceIdentification $identification, ResourceStakeholder $stakeholder) | |
| clone (ResourceIdentification $identification) | |
| appendNewRevision (ResourceIdentification $identification, UploadResult $result, ResourceStakeholder $stakeholder, string $revision_title=null, bool $draft=false) | |
| Append a new revision from an UploadResult. More... | |
| replaceWithUpload (ResourceIdentification $identification, UploadResult $result, ResourceStakeholder $stakeholder, string $revision_title=null) | |
| appendNewRevisionFromStream (ResourceIdentification $identification, FileStream $stream, ResourceStakeholder $stakeholder, string $revision_title=null, bool $draft=false) | |
| Append a new revision from a stream. More... | |
| replaceWithStream (ResourceIdentification $identification, FileStream $stream, ResourceStakeholder $stakeholder, string $revision_title=null) | |
| getCurrentRevision (ResourceIdentification $identification) | |
| getCurrentRevisionIncludingDraft (ResourceIdentification $identification) | |
| updateRevision (Revision $revision) | |
| rollbackRevision (ResourceIdentification $identification, int $revision_number) | |
| removeRevision (ResourceIdentification $identification, int $revision_number) | |
Protected Member Functions | |
| checkZIP (bool|string $mimetype) | |
| newStreamBased (FileStream $stream, ResourceStakeholder $stakeholder, ResourceType $type, string $revision_title=null) | |
Protected Attributes | |
| ResourceBuilder | $resource_builder |
| CollectionBuilder | $collection_builder |
| RepositoryPreloader | $preloader |
Definition at line 40 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::__construct | ( | ResourceBuilder | $resource_builder, |
| CollectionBuilder | $collection_builder, | ||
| RepositoryPreloader | $preloader | ||
| ) |
Manager constructor.
Definition at line 49 of file BaseManager.php.
References ILIAS\ResourceStorage\Manager\BaseManager\$collection_builder, ILIAS\ResourceStorage\Manager\BaseManager\$preloader, and ILIAS\ResourceStorage\Manager\BaseManager\$resource_builder.
| ILIAS\ResourceStorage\Manager\BaseManager::appendNewRevision | ( | ResourceIdentification | $identification, |
| UploadResult | $result, | ||
| ResourceStakeholder | $stakeholder, | ||
| string | $revision_title = null, |
||
| bool | $draft = false |
||
| ) |
Append a new revision from an UploadResult.
By passing $draft = true, the revision will be created as a DRAFT on top of the current revision. Consumers will always use the latest published revision. Appending new Revisions is not possible if the latest revision is already a DRAFT. In this case, the DRAFT will be updated.
Definition at line 155 of file BaseManager.php.
References ILIAS\ResourceStorage\Manager\BaseManager\checkZIP(), ILIAS\ResourceStorage\Resource\CONTAINER, ILIAS\ResourceStorage\Revision\DRAFT, ILIAS\FileUpload\DTO\UploadResult\getMimeType(), ILIAS\FileUpload\DTO\UploadResult\getName(), ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder\getOwnerOfNewResources(), ILIAS\FileUpload\DTO\UploadResult\getStatus(), ILIAS\FileUpload\DTO\UploadResult\isOK(), and ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize().
Here is the call graph for this function:| ILIAS\ResourceStorage\Manager\BaseManager::appendNewRevisionFromStream | ( | ResourceIdentification | $identification, |
| FileStream | $stream, | ||
| ResourceStakeholder | $stakeholder, | ||
| string | $revision_title = null, |
||
| bool | $draft = false |
||
| ) |
Append a new revision from a stream.
By passing $draft = true, the revision will be created as a DRAFT on top of the current revision. Consumers will always use the latest published revision. Appending new Revisions is not possible if the latest revision is already a DRAFT. In this case, the DRAFT will be updated.
Definition at line 248 of file BaseManager.php.
References ILIAS\ResourceStorage\Manager\BaseManager\checkZIP(), ILIAS\ResourceStorage\Resource\CONTAINER, ILIAS\ResourceStorage\Revision\DRAFT, ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder\getOwnerOfNewResources(), and ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize().
Here is the call graph for this function:
|
protected |
| bool | string | $mimetype |
Definition at line 63 of file BaseManager.php.
Referenced by ILIAS\ResourceStorage\Manager\BaseManager\appendNewRevision(), ILIAS\ResourceStorage\Manager\BaseManager\appendNewRevisionFromStream(), ILIAS\ResourceStorage\Manager\ContainerManager\containerFromStream(), ILIAS\ResourceStorage\Manager\ContainerManager\containerFromUpload(), ILIAS\ResourceStorage\Manager\BaseManager\replaceWithStream(), and ILIAS\ResourceStorage\Manager\BaseManager\replaceWithUpload().
Here is the caller graph for this function:| ILIAS\ResourceStorage\Manager\BaseManager::clone | ( | ResourceIdentification | $identification | ) |
Definition at line 140 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::find | ( | string | $identification | ) |
Definition at line 113 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::getCurrentRevision | ( | ResourceIdentification | $identification | ) |
Definition at line 334 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::getCurrentRevisionIncludingDraft | ( | ResourceIdentification | $identification | ) |
Definition at line 340 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::getResource | ( | ResourceIdentification | $i | ) |
Definition at line 126 of file BaseManager.php.
References ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize().
Referenced by ILIAS\ResourceStorage\Manager\ContainerManager\addStreamToContainer(), ILIAS\ResourceStorage\Manager\ContainerManager\addUploadToContainer(), ILIAS\ResourceStorage\Manager\ContainerManager\createDirectoryInsideContainer(), and ILIAS\ResourceStorage\Manager\ContainerManager\removePathInsideContainer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 88 of file BaseManager.php.
References ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder\getOwnerOfNewResources().
Referenced by ILIAS\ResourceStorage\Manager\ContainerManager\containerFromStream(), and ILIAS\ResourceStorage\Manager\Manager\stream().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\ResourceStorage\Manager\BaseManager::publish | ( | ResourceIdentification | $rid | ) |
Publish a resource.
A resource can contain a maximum of one revision in DRAFT on top status. This method can be used to publish this revision. If the latest revision is already published, nothing changes.
Definition at line 74 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::remove | ( | ResourceIdentification | $identification, |
| ResourceStakeholder | $stakeholder | ||
| ) |
Definition at line 132 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::removeRevision | ( | ResourceIdentification | $identification, |
| int | $revision_number | ||
| ) |
Definition at line 362 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::replaceWithStream | ( | ResourceIdentification | $identification, |
| FileStream | $stream, | ||
| ResourceStakeholder | $stakeholder, | ||
| string | $revision_title = null |
||
| ) |
Definition at line 293 of file BaseManager.php.
References ILIAS\ResourceStorage\Manager\BaseManager\checkZIP(), ILIAS\ResourceStorage\Resource\CONTAINER, ILIAS\ResourceStorage\Revision\DRAFT, ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder\getOwnerOfNewResources(), and ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize().
Here is the call graph for this function:| ILIAS\ResourceStorage\Manager\BaseManager::replaceWithUpload | ( | ResourceIdentification | $identification, |
| UploadResult | $result, | ||
| ResourceStakeholder | $stakeholder, | ||
| string | $revision_title = null |
||
| ) |
Definition at line 201 of file BaseManager.php.
References ILIAS\ResourceStorage\Manager\BaseManager\checkZIP(), ILIAS\ResourceStorage\Resource\CONTAINER, ILIAS\ResourceStorage\Revision\DRAFT, ILIAS\FileUpload\DTO\UploadResult\getMimeType(), ILIAS\FileUpload\DTO\UploadResult\getName(), ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder\getOwnerOfNewResources(), ILIAS\FileUpload\DTO\UploadResult\getStatus(), ILIAS\FileUpload\DTO\UploadResult\isOK(), and ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize().
Here is the call graph for this function:| ILIAS\ResourceStorage\Manager\BaseManager::rollbackRevision | ( | ResourceIdentification | $identification, |
| int | $revision_number | ||
| ) |
Definition at line 353 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::unpublish | ( | ResourceIdentification | $rid | ) |
Unpublish a resource.
The newest revision of a resource is set to the DRAFT status. If the latest revision is already in DRAFT, nothing changes.
Definition at line 83 of file BaseManager.php.
| ILIAS\ResourceStorage\Manager\BaseManager::updateRevision | ( | Revision | $revision | ) |
Definition at line 346 of file BaseManager.php.
|
protected |
Definition at line 43 of file BaseManager.php.
Referenced by ILIAS\ResourceStorage\Manager\BaseManager\__construct().
|
protected |
Definition at line 44 of file BaseManager.php.
Referenced by ILIAS\ResourceStorage\Manager\BaseManager\__construct().
|
protected |
Definition at line 42 of file BaseManager.php.
Referenced by ILIAS\ResourceStorage\Manager\BaseManager\__construct().