ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
HasMustacheVariables.php
Go to the documentation of this file.
1<?php
2
20
21use ILIAS\UI\Implementation\Component\ComponentHelper;
22
27{
28 use ComponentHelper;
29
31 protected array $mustache_variable_definitions = [];
32
33 protected ?string $mustache_variable_context_info = null;
34
35 public function withMustacheVariables(
36 array $variable_definitions,
37 ?string $context_information = null
38 ): static {
39 $variable_names = array_keys($variable_definitions);
40 $this->checkArgListElements('$variable_definitions', $variable_names, ['string']);
41 $this->checkArgListElements('$variable_definitions', $variable_definitions, ['string']);
42
43 $clone = clone $this;
44 $clone->mustache_variable_definitions = $variable_definitions;
45 $clone->mustache_variable_context_info = $context_information;
46 return $clone;
47 }
48
49 public function getMustacheVariables(): array
50 {
52 }
53
54 public function getMustacheVariableContextInfo(): ?string
55 {
57 }
58}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Checkbox.php:21
withMustacheVariables(array $variable_definitions, ?string $context_information=null)