public function getErrorElements($fields)
    {
        $errElements = array();
        foreach ($fields as $field => $error) {
            $element = $this->dataPanel->getByField($field);
            $errElements[$element->objectName] = $error;
        }
        return $errElements;
    }
public function getErrorElements($fields)
    {
        $errElements = array();
        foreach ($fields as $field => $error) {
            $element = $this->dataPanel->getByField($field);
            $errElements[$element->objectName] = $error;
        }
        return $errElements;
    }
public function getErrorElements ( $ fields ) { $ errElements = array ( ) ; foreach ( $ fields as $ field => $ error ) { $ element = $ this -> dataPanel -> getByField ( $ field ) ; $ errElements [ $ element -> objectName ] = $ error ; } return $ errElements ; }
Get error elements

@param array $fields
@return array
Get error elements