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)
 
 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 ( )

Definition at line 13 of file AbsolutePathConsumer.php.

References ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer\$absolute_path, and ILIAS\ResourceStorage\Consumer\AbsolutePathConsumer\run().

13  : string
14  {
15  $this->run();
16  return $this->absolute_path;
17  }
run()
This runs the actual DeliveryConsumer.
+ Here is the call graph for this function:

◆ 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.

Implements ILIAS\ResourceStorage\Consumer\DeliveryConsumer.

Definition at line 19 of file AbsolutePathConsumer.php.

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

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  }
+ 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: