ILIAS  release_7 Revision v7.30-3-g800a261c036
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 (StorableResource $resource, StorageHandler $storage_handler, 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

 $absolute_path = ''
 
- Protected Attributes inherited from ILIAS\ResourceStorage\Consumer\BaseConsumer
 $storage_handler
 
 $resource
 
 $revision_number = null
 
 $file_name_policy
 
 $file_name = ''
 

Detailed Description

Definition at line 9 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 19 of file AbsolutePathConsumer.php.

19 : void
20 {
21 $revision = $this->getRevision();
22
23 $stream = $this->storage_handler->getStream($revision);
24
25 $this->absolute_path = (string) $stream->getMetadata('uri');
26 }

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

+ Here is the caller graph for this function:

Field Documentation

◆ $absolute_path

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

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