ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SingleAction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
24 
29 class SingleAction extends Action
30 {
31  public function __construct(
32  string $label,
33  URI $action,
34  private bool $async = false,
35  private bool $bulk = false,
36  private bool $supports_directories = false,
37  private array $supported_mime_types = ['*']
38  ) {
39  parent::__construct($label, $action);
40  }
41 
42  public function isAsync(): bool
43  {
44  return $this->async;
45  }
46 
47  public function isBulk(): bool
48  {
49  return $this->bulk;
50  }
51 
52  public function supportsDirectories(): bool
53  {
54  return $this->supports_directories;
55  }
56 
57  public function getSupportedMimeTypes(): array
58  {
59  return $this->supported_mime_types;
60  }
61 
62 }
__construct(string $label, URI $action, private bool $async=false, private bool $bulk=false, private bool $supports_directories=false, private array $supported_mime_types=[' *'])
__construct(Container $dic, ilPlugin $plugin)