ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 message isn't optional as in build in class Exception. More...
 
 getFormAlert (ilLanguage $lng)
 

Protected Attributes

 $element
 

Detailed Description

Definition at line 15 of file ilAssLacDuplicateElement.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 25 of file ilAssLacDuplicateElement.php.

26 {
27 $this->element = $element;
28
29 parent::__construct(sprintf(
30 'Duplicate key "%s" in condition',
31 $this->getElement()
32 ));
33 }
sprintf('%.4f', $callTime)

References $element, getElement(), and sprintf.

+ Here is the call graph for this function:

Member Function Documentation

◆ getElement()

ilAssLacDuplicateElement::getElement ( )
Returns
string

Definition at line 38 of file ilAssLacDuplicateElement.php.

39 {
40 return $this->element;
41 }

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 47 of file ilAssLacDuplicateElement.php.

48 {
49 return sprintf(
50 $lng->txt("ass_lac_duplicate_element"),
51 $this->getElement()
52 );
53 }
global $lng
Definition: privfeed.php:17

References $lng, and sprintf.

Field Documentation

◆ $element

ilAssLacDuplicateElement::$element
protected

Definition at line 20 of file ilAssLacDuplicateElement.php.

Referenced by __construct(), and getElement().


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