19declare(strict_types=1);
41 ?
string $revision_title =
null
43 if ($result->isOK()) {
48 $revision_title ?? $result->
getName()
51 $resource = $this->resource_builder->new(
55 $resource->addStakeholder($stakeholder);
56 $this->resource_builder->store($resource);
58 return $resource->getIdentification();
60 throw new \LogicException(
"Can't handle UploadResult: " . $result->getStatus()->getMessage());
66 ?
string $revision_title =
null
Class ResourceIdentification.
newStreamBased(FileStream $stream, ResourceStakeholder $stakeholder, ResourceType $type, ?string $revision_title=null)
upload(UploadResult $result, ResourceStakeholder $stakeholder, ?string $revision_title=null)
@description Creates a new resource from an upload, the status in this case is always PUBLISHED.
stream(FileStream $stream, ResourceStakeholder $stakeholder, ?string $revision_title=null)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The base interface for all filesystem streams.
Interface ResourceStakeholder.
if(!file_exists('../ilias.ini.php'))