ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SingleAction.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29class 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}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__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)
@inheritDoc