ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacDuplicateElement.php
Go to the documentation of this file.
1<?php
2
29{
33 protected $element;
34
38 public function __construct($element)
39 {
40 $this->element = $element;
41
42 parent::__construct(sprintf(
43 'Duplicate key "%s" in condition',
44 $this->getElement()
45 ));
46 }
47
51 public function getElement(): string
52 {
53 return $this->element;
54 }
55
60 public function getFormAlert(ilLanguage $lng): string
61 {
62 return sprintf(
63 $lng->txt("ass_lac_duplicate_element"),
64 $this->getElement()
65 );
66 }
67}
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31