ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Options.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27abstract class Options
28{
29 private array $ignore = [
30 '.DS_',
31 '__MACOSX',
32 ];
33
34 protected ZipDirectoryHandling $top_directory_handling = ZipDirectoryHandling::KEEP_STRUCTURE;
35
39 public function getIgnoredPathSnippets(): array
40 {
41 return $this->ignore;
42 }
43
44 public function withDirectoryHandling(ZipDirectoryHandling $top_dir_handling): self
45 {
46 $clone = clone $this;
47 $clone->top_directory_handling = $top_dir_handling;
48 return $clone;
49 }
50
52 {
54 }
55}
getIgnoredPathSnippets()
@description like __MACOSX, will filter out all paths which contain one of those snippets
Definition: Options.php:39
ZipDirectoryHandling $top_directory_handling
Definition: Options.php:34
withDirectoryHandling(ZipDirectoryHandling $top_dir_handling)
Definition: Options.php:44