ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilFileServicesPreProcessor.php
Go to the documentation of this file.
1 <?php
2 
26 
33 {
35 
36  public function __construct(
37  ilFileServicesSettings $settings,
38  string $reason = 'Extension is blacklisted.'
39  ) {
40  $this->settings = $settings;
42  }
43 
44  public function process(FileStream $stream, Metadata $metadata): ProcessingStatus
45  {
46  if ($this->settings->isByPassAllowedForCurrentUser()) {
47  return new ProcessingStatus(ProcessingStatus::OK, 'Blacklist override by RBAC');
48  }
49  return parent::process($stream, $metadata);
50  }
51 }
process(FileStream $stream, Metadata $metadata)
This method gets invoked by the file upload service to process the file with the help of the processo...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilFileServicesSettings $settings, string $reason='Extension is blacklisted.')
__construct(Container $dic, ilPlugin $plugin)
Interface FileStream.
Definition: FileStream.php:33