public function valid()
    {
        $isValid = true;

        if (count($this->groupFields)) {
            foreach ($this->groupFields as $group) {
                $fields = $group['fields'];
                foreach ($fields as $field) {
                    $isValid = $field->valid();
                    if (!$isValid) {
                        break;
                    }
                }
            }
        }

        return $isValid;
    }
public function valid()
    {
        $isValid = true;

        if (count($this->groupFields)) {
            foreach ($this->groupFields as $group) {
                $fields = $group['fields'];
                foreach ($fields as $field) {
                    $isValid = $field->valid();
                    if (!$isValid) {
                        break;
                    }
                }
            }
        }

        return $isValid;
    }
public function valid ( ) { $ isValid = true ; if ( count ( $ this -> groupFields ) ) { foreach ( $ this -> groupFields as $ group ) { $ fields = $ group [ 'fields' ] ; foreach ( $ fields as $ field ) { $ isValid = $ field -> valid ( ) ; if ( ! $ isValid ) { break ; } } } } return $ isValid ; }
Check validation of field.

@return bool
Check validation of field .