ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
|
Stream factory which enables the user to create streams without the knowledge of the concrete class. More...
Static Public Member Functions | |
static | ofString (string $string) |
Creates a new stream with an initial value. More... | |
static | ofResource ($resource) |
Wraps an already created resource with the stream abstraction. More... | |
static | ofReattachableResource ($resource) |
static | ofFileInsideZIP (string $path_to_zip, string $path_inside_zip) |
static | ofPsr7Stream (StreamInterface $stream) |
Create a FileStream from a Psr7 compliant stream. More... | |
Stream factory which enables the user to create streams without the knowledge of the concrete class.
Definition at line 31 of file Streams.php.
|
static |
Definition at line 84 of file Streams.php.
References null.
Referenced by ILIAS\FileDelivery\Delivery\StreamDelivery\deliverFromToken(), ILIAS\components\ResourceStorage\Container\Wrapper\ZipReader\getItem(), ILIAS\Export\ExportHandler\Repository\Element\Wrapper\IRSS\Handler\getStreamOfContainerEntry(), ILIAS\Repository\IRSS\IRSSWrapper\getStreamOfContainerEntry(), and ILIAS\Repository\IRSS\IRSSWrapper\hasContainerEntry().
|
static |
Create a FileStream from a Psr7 compliant stream.
Please not that the stream must be detached from the psr7 stream in order to create the filesystem stream.
StreamInterface | $stream | The stream which should be parsed into a FileStream. |
Definition at line 113 of file Streams.php.
References ILIAS\Filesystem\Stream\Stream\detach().
Referenced by ILIAS\FileUpload\FileUploadImpl\moveFilesTo(), ILIAS\FileUpload\FileUploadImpl\moveOneFileTo(), and ILIAS\FileUpload\FileUploadImpl\process().
|
static |
Definition at line 74 of file Streams.php.
Referenced by ILIAS\ResourceStorage\Resource\ResourceBuilder\extractStream().
|
static |
Wraps an already created resource with the stream abstraction.
The stream abstraction only supports streams which are opened with fopen.
resource | $resource | The resource which should be wrapped. |
Definition at line 64 of file Streams.php.
Referenced by ILIAS\FileDelivery\Delivery\LegacyDelivery\deliver(), ILIAS\FileDelivery\Delivery\StreamDelivery\deliverFromToken(), ILIAS\components\ResourceStorage\Container\Wrapper\ContainerWrapper\download(), ilDclFileRecordFieldModel\parseValue(), ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess\readStream(), ILIAS\LegalDocuments\Consumer\DownloadMultipleConsumer\run(), ILIAS\Test\ResponseHandler\sendAsync(), ILIAS\Repository\Resources\ZipAdapter\unzipFile(), and ILIAS\Export\ExportHandler\Consumer\ExportWriter\Handler\writeFileByFilePath().
|
static |
Creates a new stream with an initial value.
Please note that the whole stream is stored within memory.
string | $string | The string which should be written as initial value. |
Definition at line 41 of file Streams.php.
Referenced by ilPropertyFormGUI\checkInput(), ILIAS\Export\ExportHandler\Repository\Wrapper\IRSS\Handler\createEmptyContainer(), ILIAS\HTTP\HTTPUtil\deliverString(), ILIAS\MetaData\OERExposer\OAIPMH\Handler\AbstractCtrlAwareUploadHandler\executeCommand(), ILIAS\LegalDocuments\Administration\exitWithJsonResponse(), ilECSSettingsGUI\exportImported(), ilECSSettingsGUI\exportReleased(), ILIAS\Test\Scoring\Manual\TestScoringByQuestionGUI\getAnswerDetail(), ILIAS\ResourceStorage\AbstractTestBase\getDummyStream(), ilChatroomAuthInputGUI\getRandomValues(), ILIAS\components\WOPI\Handler\RequestHandler\handleRequest(), GuzzleHttp\Client\Notifications\handleRerender(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\CropSquare\maybeRotate(), ilDataCollectionGlobalTemplate\printToStdout(), ILIAS\ResourceStorage\Flavours\SVGDummyMachine\processStream(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\ExtractPages\processStream(), ILIAS\ResourceStorage\Flavour\Machine\NullMachine\processStream(), ILIAS\Badge\ilBadgeImageTemplateTableGUI\renderTable(), ILIAS\Badge\ilBadgeTableGUI\renderTable(), ILIAS\Badge\ilObjectBadgeTableGUI\renderTable(), ILIAS\ResourceStorage\Flavour\FlavourBuilder\runMachine(), ILIAS\COPage\Editor\Server\Response\send(), ILIAS\Repository\send(), ILIAS\Export\PrintProcessGUI\send(), ILIAS\Test\ResponseHandler\sendAsync(), ILIAS\MetaData\OERExposer\OAIPMH\HTTP\Wrapper\sendResponseAndClose(), ILIAS\HTTP\HTTPUtil\sendString(), ILIAS\ResourceStorage\Flavours\FlavourMachineTest\testMachineResult(), ILIAS\MetaData\Repository\Validation\Processor\SVGPreProcessorTest\testMaliciousSVG(), ILIAS\ResourceStorage\Flavours\FlavourTest\testNewFlavour(), ILIAS\MetaData\Repository\Validation\Processor\WhitelistExtensionPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\WhitelistFileHeaderPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\BlacklistFileHeaderPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\FilenameOverridePreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\FileUploadImplTest\testProcessWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessorTest\testProcessWithBlacklistedEmptyExtensionWhichShouldGetRejected(), ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessorTest\testProcessWithBlacklistedExtensionWhichShouldGetRejected(), ILIAS\FileUpload\FileUploadImplTest\testProcessWithFailedUploadWhichShouldGetRejected(), ILIAS\MetaData\Repository\Validation\Processor\WhitelistFileHeaderPreProcessorTest\testProcessWithHeaderMismatchWhichShouldGetRejected(), ILIAS\MetaData\Repository\Validation\Processor\BlacklistFileHeaderPreProcessorTest\testProcessWithHeaderMismatchWhichShouldGetRejected(), ILIAS\MetaData\Repository\Validation\Processor\WhitelistExtensionPreProcessorTest\testProcessWithoutExtensionWhichShouldSucceed(), ILIAS\MetaData\Repository\Validation\Processor\WhitelistExtensionPreProcessorTest\testProcessWithoutWhitelistedExtensionWhichShouldGetRejected(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testPutStreamWhichShouldSucceed(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testPutStreamWithDetachedStreamWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testPutStreamWithGeneralFailureWhichShouldFail(), ILIAS\MetaData\Repository\Validation\Processor\SVGPreProcessorTest\testSaneSVG(), ILIAS\MetaData\Repository\Validation\Processor\SVGPreProcessorTest\testSomeComplexSaneSVG(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testUpdateStreamWhichShouldSucceed(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testUpdateStreamWithDetachedStreamWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testUpdateStreamWithGeneralFailureWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testUpdateStreamWithMissingFileWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testWriteStreamWhichShouldSucceed(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testWriteStreamWithDetachedStreamWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testWriteStreamWithExistingFileWhichShouldFail(), Filesystem\Provider\FlySystem\FlySystemFileStreamAccessTest\testWriteStreamWithFailingAdapterWhichShouldFail(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\to(), and ILIAS\Export\ExportHandler\Manager\Handler\writeToElement().