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