9 if(is_array($this->elements))
11 foreach($this->elements as $id => $element)
13 $this->elements[$id] = clone $element;
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;
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));