ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Options.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 abstract 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 }
ZipDirectoryHandling $top_directory_handling
Definition: Options.php:34
withDirectoryHandling(ZipDirectoryHandling $top_dir_handling)
Definition: Options.php:44
getIgnoredPathSnippets()
like __MACOSX, will filter out all paths which contain one of those snippets
Definition: Options.php:39