19 declare(strict_types=1);
61 $this->single_actions = $this->action_provider->getSingleActions($this->request);
67 $key = $namespace .
$param;
68 if (isset($this->appended_tokens[$key])) {
77 $this->appended_tokens[$key] = $parameters[1];
79 return $this->url_builder = $parameters[0];
86 ILIAS_HTTP_PATH .
'/' . $this->
ctrl->getLinkTargetByClass(
87 \ilContainerResourceGUI::class,
93 $parameters = $uri_builder->acquireParameter(
94 [self::ACTION_NAMESPACE],
98 $this->url_builder = $parameters[0];
99 $this->url_token = $parameters[1];
119 foreach ($this->single_actions as $key => $single_action) {
122 $single_action->getParameterNamespace(),
123 $single_action->getPathParameterName()
126 $token = $this->appended_tokens[$single_action->getParameterNamespace(
132 if ($single_action->isBulk()) {
133 $action = $this->ui_factory->table()->action()->standard(
134 $single_action->getLabel(),
135 $this->url_builder->withURI($single_action->getAction()),
139 $action = $this->ui_factory->table()->action()->single(
140 $single_action->getLabel(),
141 $this->url_builder->withURI($single_action->getAction()),
145 $actions[$key] = $action->withAsync($single_action->isAsync());
153 return $this->action_provider;
if($err=$client->getError()) $namespace
ILIAS UI URLBuilderToken $url_token
appendNamespaceToURIBuilder(string $namespace, string $param)
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This is how the factory for UI elements looks.
The scope of this class is split ilias-conform URI's into components.
__construct(private Request $request, private \ilCtrlInterface $ctrl, private Factory $ui_factory, private \ilLanguage $language, private Services $irss, private ActionProvider $action_provider)
acquireParameter(array $namespace, string $name, ?string $initial_value=null)
Add a new parameter with a namespace and get its token for subsequent changes.