ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacDuplicateElement Class Reference
+ Inheritance diagram for ilAssLacDuplicateElement:
+ Collaboration diagram for ilAssLacDuplicateElement:

Public Member Functions

 __construct ($element)
 
 getElement ()
 
 getFormAlert (ilLanguage $lng)
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0)
 A code isn't optional as in build in class Exception. More...
 
 getFormAlert (ilLanguage $lng)
 

Protected Attributes

 $element
 

Detailed Description

Definition at line 28 of file ilAssLacDuplicateElement.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacDuplicateElement::__construct (   $element)
Parameters
string$bracket

Definition at line 38 of file ilAssLacDuplicateElement.php.

39 {
40 $this->element = $element;
41
42 parent::__construct(sprintf(
43 'Duplicate key "%s" in condition',
44 $this->getElement()
45 ));
46 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $element, ILIAS\GlobalScreen\Provider\__construct(), and getElement().

+ Here is the call graph for this function:

Member Function Documentation

◆ getElement()

ilAssLacDuplicateElement::getElement ( )
Returns
string

Definition at line 51 of file ilAssLacDuplicateElement.php.

51 : string
52 {
53 return $this->element;
54 }

References $element.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getFormAlert()

ilAssLacDuplicateElement::getFormAlert ( ilLanguage  $lng)
Parameters
ilLanguage$lng
Returns
string

Implements ilAssLacFormAlertProvider.

Definition at line 60 of file ilAssLacDuplicateElement.php.

60 : string
61 {
62 return sprintf(
63 $lng->txt("ass_lac_duplicate_element"),
64 $this->getElement()
65 );
66 }
global $lng
Definition: privfeed.php:31

References $lng.

Field Documentation

◆ $element

ilAssLacDuplicateElement::$element
protected

Definition at line 33 of file ilAssLacDuplicateElement.php.

Referenced by __construct(), and getElement().


The documentation for this class was generated from the following file: