19 declare(strict_types=1);
    48         string $revision_title = null
    50         if ($result->
isOK()) {
    55                 $revision_title ?? $result->
getName()
    58             $resource = $this->resource_builder->new(
    62             $resource->addStakeholder($stakeholder);
    63             $this->resource_builder->store($resource);
    65             return $resource->getIdentification();
    67         throw new \LogicException(
"Can't handle UploadResult: " . $result->
getStatus()->getMessage());
    73         string $revision_title = null
    78             ResourceType::SINGLE_FILE,
 upload(UploadResult $result, ResourceStakeholder $stakeholder, string $revision_title=null)
Creates a new resource from an upload, the status in this case is always PUBLISHED. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ResourceIdentification. 
 
Interface ResourceStakeholder. 
 
newStreamBased(FileStream $stream, ResourceStakeholder $stakeholder, ResourceType $type, string $revision_title=null)
 
The base interface for all filesystem streams. 
 
stream(FileStream $stream, ResourceStakeholder $stakeholder, string $revision_title=null)