public function valuesAsHtml($hideEmpty = false, $collection = null)
    {
        $strTable = "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"validform\">\n";
        $strTableOutput = "";
        $collection = (!is_null($collection)) ? $collection : $this->__elements;

        foreach ($collection as $objFieldset) {
            $strSet = "";
            $strTableOutput .= $this->fieldsetAsHtml($objFieldset, $strSet, $hideEmpty);
        }

        if (! empty($strTableOutput)) {
            return $strTable . $strTableOutput . "</table>";
        } else {
            if (! empty($this->__novaluesmessage)) {
                return $strTable . "<tr><td colspan=\"3\">{$this->__novaluesmessage}</td></tr></table>";
            } else {
                return "";
            }
        }
    }
public function valuesAsHtml($hideEmpty = false, $collection = null)
    {
        $strTable = "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"validform\">\n";
        $strTableOutput = "";
        $collection = (!is_null($collection)) ? $collection : $this->__elements;

        foreach ($collection as $objFieldset) {
            $strSet = "";
            $strTableOutput .= $this->fieldsetAsHtml($objFieldset, $strSet, $hideEmpty);
        }

        if (! empty($strTableOutput)) {
            return $strTable . $strTableOutput . "</table>";
        } else {
            if (! empty($this->__novaluesmessage)) {
                return $strTable . "<tr><td colspan=\"3\">{$this->__novaluesmessage}</td></tr></table>";
            } else {
                return "";
            }
        }
    }
public function valuesAsHtml ( $ hideEmpty = false , $ collection = null ) { $ strTable = "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"validform\">\n" ; $ strTableOutput = "" ; $ collection = ( ! is_null ( $ collection ) ) ? $ collection : $ this -> __elements ; foreach ( $ collection as $ objFieldset ) { $ strSet = "" ; $ strTableOutput .= $ this -> fieldsetAsHtml ( $ objFieldset , $ strSet , $ hideEmpty ) ; } if ( ! empty ( $ strTableOutput ) ) { return $ strTable . $ strTableOutput . "</table>" ; } else { if ( ! empty ( $ this -> __novaluesmessage ) ) { return $ strTable . "<tr><td colspan=\"3\">{$this->__novaluesmessage}</td></tr></table>" ; } else { return "" ; } } }
A utility method to parse an overview of the submitted values.

This generates a table with `label: value` pairs. The output of this function is mostly used in for example
e-mail bodies. When the contact form created with ValidForm Builder is submitted, you only have to e-mail
the results of `valuesAsHtml()`

@param boolean $hideEmpty Set to true to hide empty field values from the overview. Defaults to false.
@param string $collection Optional - advanced usage only; a custom Collection of elements to parse
@return string Generated `table` with `label: value` pairs
A utility method to parse an overview of the submitted values .