protected function setErrorClassAttribute()
    {
        if ($this->hasArgument('class')) {
            $cssClass = $this->arguments['class'] . ' ';
        } else {
            $cssClass = '';
        }
        $mappingResultsForProperty = $this->getMappingResultsForProperty();
        if ($mappingResultsForProperty->hasErrors()) {
            if ($this->hasArgument('errorClass')) {
                $cssClass .= $this->arguments['errorClass'];
            } else {
                $cssClass .= 'error';
            }
            $this->tag->addAttribute('class', $cssClass);
        }
    }
protected function setErrorClassAttribute()
    {
        if ($this->hasArgument('class')) {
            $cssClass = $this->arguments['class'] . ' ';
        } else {
            $cssClass = '';
        }
        $mappingResultsForProperty = $this->getMappingResultsForProperty();
        if ($mappingResultsForProperty->hasErrors()) {
            if ($this->hasArgument('errorClass')) {
                $cssClass .= $this->arguments['errorClass'];
            } else {
                $cssClass .= 'error';
            }
            $this->tag->addAttribute('class', $cssClass);
        }
    }
protected function setErrorClassAttribute ( ) { if ( $ this -> hasArgument ( 'class' ) ) { $ cssClass = $ this -> arguments [ 'class' ] . ' ' ; } else { $ cssClass = '' ; } $ mappingResultsForProperty = $ this -> getMappingResultsForProperty ( ) ; if ( $ mappingResultsForProperty -> hasErrors ( ) ) { if ( $ this -> hasArgument ( 'errorClass' ) ) { $ cssClass .= $ this -> arguments [ 'errorClass' ] ; } else { $ cssClass .= 'error' ; } $ this -> tag -> addAttribute ( 'class' , $ cssClass ) ; } }
Add an CSS class if this view helper has errors

@return void
Add an CSS class if this view helper has errors