ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ExternalSingleAction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
24 
30 {
31  public function __construct(
32  string $label,
33  private string $target_class,
34  private string $target_cmd,
35  private string $path_parameter_name,
36  private string $parameter_namespace,
37  bool $async = false,
38  bool $bulk = false,
39  bool $supports_directories = false,
40  array $supported_mime_types = ['*']
41  ) {
42  global $DIC;
43  $action = new URI(
44  rtrim(ILIAS_HTTP_PATH, '/') . '/' . $DIC->ctrl()->getLinkTargetByClass(
45  $this->target_class,
46  $this->target_cmd
47  )
48  );
49 
51  $label,
52  $action,
53  $async,
54  $bulk,
55  $supports_directories,
56  $supported_mime_types
57  );
58  }
59 
60  public function getTargetClass(): string
61  {
62  return $this->target_class;
63  }
64 
65  public function getTargetCmd(): string
66  {
67  return $this->target_cmd;
68  }
69 
70  public function getPathParameterName(): string
71  {
72  return $this->path_parameter_name;
73  }
74 
75  public function getParameterNamespace(): string
76  {
77  return $this->parameter_namespace;
78  }
79 
80 }
global $DIC
Definition: shib_login.php:22
__construct(string $label, private string $target_class, private string $target_cmd, private string $path_parameter_name, private string $parameter_namespace, bool $async=false, bool $bulk=false, bool $supports_directories=false, array $supported_mime_types=[' *'])
__construct(Container $dic, ilPlugin $plugin)