ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
FileStreamRevision.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
31 class FileStreamRevision extends FileRevision implements Revision
32 {
34  protected bool $keep_original = false;
35 
39  public function __construct(
41  FileStream $stream,
42  bool $keep_original = false
43  ) {
44  $this->stream = $stream;
45  $this->keep_original = $keep_original;
46  parent::__construct($identification);
49  }
50 
51  public function getStream(): FileStream
52  {
53  return $this->stream;
54  }
55 
56  public function keepOriginal(): bool
57  {
58  return $this->keep_original;
59  }
60 }
ILIAS ResourceStorage Identification ResourceIdentification $identification
setInformation(Information $information)
__construct(ResourceIdentification $identification, FileStream $stream, bool $keep_original=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
Interface FileStream.
Definition: FileStream.php:33
ILIAS ResourceStorage Information Information $information