ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FilenameOverridePreProcessor.php
Go to the documentation of this file.
1<?php
2
4
8
19{
20
24 private $filename;
25
26
32 public function __construct($filename)
33 {
34 $this->filename = $filename;
35 }
36
37
42 {
43 $metadata->setFilename($this->filename);
44
45 return new ProcessingStatus(ProcessingStatus::OK, 'Filename changed');
46 }
47}
$metadata['__DYNAMIC:1__']
An exception for terminatinating execution or to throw for unit testing.
process(FileStream $stream, Metadata $metadata)
@inheritDoc
__construct($filename)
BlacklistExtensionPreProcessor constructor.
$stream
PHP stream implementation.