protected function validateDescriptionCategory()
    {
        $fields = array(
            'description_1' => $this->translation->text('First description'),
            'description_2' => $this->translation->text('Second description')
        );

        $errors = 0;
        foreach ($fields as $field => $label) {
            $value = $this->getSubmitted($field);
            if (isset($value) && mb_strlen($value) > 65535) {
                $errors++;
                $this->setErrorLengthRange($field, $label, 0, 65535);
            }
        }

        return empty($errors);
    }
protected function validateDescriptionCategory()
    {
        $fields = array(
            'description_1' => $this->translation->text('First description'),
            'description_2' => $this->translation->text('Second description')
        );

        $errors = 0;
        foreach ($fields as $field => $label) {
            $value = $this->getSubmitted($field);
            if (isset($value) && mb_strlen($value) > 65535) {
                $errors++;
                $this->setErrorLengthRange($field, $label, 0, 65535);
            }
        }

        return empty($errors);
    }
protected function validateDescriptionCategory ( ) { $ fields = array ( 'description_1' => $ this -> translation -> text ( 'First description' ) , 'description_2' => $ this -> translation -> text ( 'Second description' ) ) ; $ errors = 0 ; foreach ( $ fields as $ field => $ label ) { $ value = $ this -> getSubmitted ( $ field ) ; if ( isset ( $ value ) && mb_strlen ( $ value ) > 65535 ) { $ errors ++ ; $ this -> setErrorLengthRange ( $ field , $ label , 0 , 65535 ) ; } } return empty ( $ errors ) ; }
Validates first and second description
@return boolean
Validates first and second description