19declare(strict_types=1);
29 private bool $logging_enabled =
false,
30 private bool $ip_logging_enabled =
true
39 UIFactory $ui_factory,
44 static fn($vs): self => new self($vs[
'activation'], $vs[
'ip_logging'])
47 'logging' => $ui_factory->input()->field()->section(
49 'activation' => $ui_factory->input()->field()->checkbox(
50 $lng->txt(
'activate_logging')
51 )->withValue($this->isLoggingEnabled()),
52 'ip_logging' => $ui_factory->input()->field()->checkbox(
54 )->withByline(
$lng->txt(
'log_ip_info'))
55 ->withValue($this->isIPLoggingEnabled())
57 $lng->txt(
'logging_settings')
58 )->withAdditionalTransformation($trafo)
64 return $this->logging_enabled;
70 $clone->logging_enabled = $logging_enabled;
76 return $this->ip_logging_enabled;
82 $clone->ip_logging_enabled = $ip_logging_enabled;
Builds a Color from either hex- or rgb values.
toForm(UIFactory $ui_factory, Refinery $refinery, \ilLanguage $lng)
__construct(private bool $logging_enabled=false, private bool $ip_logging_enabled=true)
withLoggingEnabled(bool $logging_enabled)
withIPLoggingEnabled(bool $ip_logging_enabled)