ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer Class Reference
+ Inheritance diagram for ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer:
+ Collaboration diagram for ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer:

Public Member Functions

 getAbsolutePath ()
 
 run ()
 This runs the actual DeliveryConsumer. More...
 
- Public Member Functions inherited from ILIAS\ResourceStorage\Consumer\BaseConsumer
 __construct (protected StorableResource $resource, protected StreamAccess $stream_access, protected FileNamePolicy $file_name_policy)
 DownloadConsumer constructor. More...
 
 run ()
 This runs the actual DeliveryConsumer. More...
 
 setRevisionNumber (int $revision_number)
 @inheritDoc More...
 
 overrideFileName (string $file_name)
 
 run ()
 This runs the actual DeliveryConsumer. More...
 
 setRevisionNumber (int $revision_number)
 
 overrideFileName (string $file_name)
 

Protected Attributes

string $absolute_path = ''
 
- Protected Attributes inherited from ILIAS\ResourceStorage\Consumer\BaseConsumer
int $revision_number = null
 
string $file_name = ''
 

Detailed Description

Definition at line 27 of file AbsolutePathConsumer.php.

Member Function Documentation

◆ getAbsolutePath()

ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer::getAbsolutePath ( )

◆ run()

ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer::run ( )

This runs the actual DeliveryConsumer.

E.g. a DownloadConsumer will pass the Stream of a Ressource to the HTTP-Service and download the file.

Reimplemented from ILIAS\ResourceStorage\Consumer\BaseConsumer.

Definition at line 37 of file AbsolutePathConsumer.php.

37 : void
38 {
39 $revision = $this->stream_access->populateRevision($this->getRevision());
40
41 $stream = $revision->maybeStreamResolver()?->getStream();
42
43 $this->absolute_path = (string) ($stream->getMetadata('uri') ?? '');
44 }

Referenced by ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer\getAbsolutePath().

+ Here is the caller graph for this function:

Field Documentation

◆ $absolute_path

string ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer::$absolute_path = ''
protected

The documentation for this class was generated from the following file: