9 if (is_array($this->elements)) {
10 foreach ($this->elements as
$id => $element) {
11 $this->elements[
$id] = clone $element;
26 parent::setDefinition($a_def);
28 $this->elements =
array();
60 return array_key_exists($a_name, $this->elements);
66 return $this->elements[$a_name];
114 return array_keys((
array) $this->validation_errors);
119 $this->validation_errors[(
string) $a_error_code] = $a_element_id;
124 $valid = parent::isValid();
127 foreach ($this->
getElements() as $element_id => $element) {
128 if (!$element->isValid()) {
129 foreach ($element->getValidationErrors() as
$error) {
142 if (isset($this->validation_errors[$a_code])) {
143 $element_id = $this->validation_errors[$a_code];
146 return $element->translateErrorCode($a_code);
159 $tmp[] = $element->getCheckSum();
161 return md5(implode(
",", $tmp));
getValidationErrorsByElements()
addElementValidationError($a_element_id, $a_error_code)
if(!array_key_exists('StateId', $_REQUEST)) $id
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.