9 if(is_array($this->elements))
11 foreach($this->elements as $id => $element)
13 $this->elements[$id] = clone $element;
28 parent::setDefinition($a_def);
30 $this->elements =
array();
65 return array_key_exists($a_name, $this->elements);
72 return $this->elements[$a_name];
121 return array_keys((
array)$this->validation_errors);
126 $this->validation_errors[(
string)$a_error_code] = $a_element_id;
131 $valid = parent::isValid();
135 foreach($this->
getElements() as $element_id => $element)
137 if(!$element->isValid())
139 foreach($element->getValidationErrors() as
$error)
153 if(isset($this->validation_errors[$a_code]))
155 $element_id = $this->validation_errors[$a_code];
159 return $element->translateErrorCode($a_code);
174 $tmp[] = $element->getCheckSum();
176 return md5(implode(
",", $tmp));
getValidationErrorsByElements()
addElementValidationError($a_element_id, $a_error_code)
Add rich text string
The name of the decorator.
isValidDefinition(ilADTDefinition $a_def)
static getInstance()
Get singleton.
translateErrorCode($a_code)
addElement($a_name, ilADTDefinition $a_def)
Create styles array
The data for the language used.
getCheckSum()
Get unique checksum.
setDefinition(ilADTDefinition $a_def)
ADT definition base class.
getDefinition()
Get definition.