Class PHP.
More...
Class PHP.
- Author
- Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
- Since
- 5.3
- Version
- 1.0
Definition at line 36 of file PHP.php.
◆ __construct()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::__construct |
( |
Services |
$httpState | ) |
|
PHP constructor.
- Parameters
-
Definition at line 50 of file PHP.php.
52 $this->httpService = $httpState;
◆ deliver()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::deliver |
( |
string |
$path_to_file, |
|
|
bool |
$file_marked_to_delete |
|
) |
| |
- Parameters
-
string | $path_to_file | absolute path to file |
bool | $file_marked_to_delete | This is needed at this point for header-based delivery methods |
- Returns
- void
Implements ILIAS\FileDelivery\ilFileDeliveryType.
Definition at line 83 of file PHP.php.
85 $this->httpService->sendResponse();
86 fpassthru($this->file);
◆ doesFileExists()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::doesFileExists |
( |
string |
$path_to_file | ) |
|
◆ handleFileDeletion()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::handleFileDeletion |
( |
string |
$path_to_file | ) |
|
◆ prepare()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::prepare |
( |
string |
$path_to_file, |
|
|
?FileStream |
$possible_stream |
|
) |
| |
Definition at line 68 of file PHP.php.
71 if ($possible_stream !== null) {
72 $this->file = $possible_stream->detach();
74 $this->file = fopen($path_to_file,
'rb');
◆ supportsAttachmentDelivery()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::supportsAttachmentDelivery |
( |
| ) |
|
◆ supportsInlineDelivery()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::supportsInlineDelivery |
( |
| ) |
|
◆ supportsStreaming()
ILIAS\FileDelivery\FileDeliveryTypes\PHP::supportsStreaming |
( |
| ) |
|
◆ $file
ILIAS\FileDelivery\FileDeliveryTypes\PHP::$file |
|
protected |
◆ $httpService
The documentation for this class was generated from the following file:
- components/ILIAS/FileDelivery/classes/FileDeliveryTypes/PHP.php