protected function multiFieldAsHtml($objField, $hideEmpty = false, $intDynamicCount = 0)
    {
        $strReturn = "";
        
        // If this multi field was rendered invisible due to conditions,
        // don't show it on the valuesAsHtml overview either.
        if (!$this->elementShouldDisplay($objField)) {
            return $strReturn;
        }

        if ($objField->hasContent($intDynamicCount)) {
            if ($objField->hasFields()) {
                $strValue = "";
                $objSubFields = $objField->getFields();

                $intCount = 0;
                foreach ($objSubFields as $objSubField) {
                    $intCount ++;

                    if (get_class($objSubField) == "ValidFormBuilder\\Hidden" && $objSubField->isDynamicCounter()) {
                        continue;
                    }

                    $varValue = $objSubField->getValue($intDynamicCount);
                    $strValue .= (is_array($varValue)) ? implode(", ", $varValue) : $varValue;
                    $strValue .= ($objSubFields->count() > $intCount) ? " " : "";
                }

                $strValue = trim($strValue);
                $strLabel = $objField->getShortLabel();

                if ((! empty($strValue) && $hideEmpty) || (! $hideEmpty && ! empty($strValue))) {
                    $strValue = htmlspecialchars($strValue, ENT_QUOTES);
                    $strValue = nl2br($strValue);

                    $strReturn .= "<tr class=\"vf__field_value\">";
                    $strReturn .= "<td valign=\"top\"";
                    $strReturn .= " style=\"white-space:nowrap; padding-right: 20px\"";
                    $strReturn .= " class=\"vf__field\">";
                    $strReturn .= $strLabel;
                    $strReturn .= "</td>";
                    $strReturn .= "<td valign=\"top\" class=\"vf__value\">";
                    $strReturn .= "<strong>" . $strValue . "</strong>";
                    $strReturn .= "</td>\n";
                    $strReturn .= "</tr>";
                }
            }
        }

        return $strReturn;
    }
protected function multiFieldAsHtml($objField, $hideEmpty = false, $intDynamicCount = 0)
    {
        $strReturn = "";
        
        // If this multi field was rendered invisible due to conditions,
        // don't show it on the valuesAsHtml overview either.
        if (!$this->elementShouldDisplay($objField)) {
            return $strReturn;
        }

        if ($objField->hasContent($intDynamicCount)) {
            if ($objField->hasFields()) {
                $strValue = "";
                $objSubFields = $objField->getFields();

                $intCount = 0;
                foreach ($objSubFields as $objSubField) {
                    $intCount ++;

                    if (get_class($objSubField) == "ValidFormBuilder\\Hidden" && $objSubField->isDynamicCounter()) {
                        continue;
                    }

                    $varValue = $objSubField->getValue($intDynamicCount);
                    $strValue .= (is_array($varValue)) ? implode(", ", $varValue) : $varValue;
                    $strValue .= ($objSubFields->count() > $intCount) ? " " : "";
                }

                $strValue = trim($strValue);
                $strLabel = $objField->getShortLabel();

                if ((! empty($strValue) && $hideEmpty) || (! $hideEmpty && ! empty($strValue))) {
                    $strValue = htmlspecialchars($strValue, ENT_QUOTES);
                    $strValue = nl2br($strValue);

                    $strReturn .= "<tr class=\"vf__field_value\">";
                    $strReturn .= "<td valign=\"top\"";
                    $strReturn .= " style=\"white-space:nowrap; padding-right: 20px\"";
                    $strReturn .= " class=\"vf__field\">";
                    $strReturn .= $strLabel;
                    $strReturn .= "</td>";
                    $strReturn .= "<td valign=\"top\" class=\"vf__value\">";
                    $strReturn .= "<strong>" . $strValue . "</strong>";
                    $strReturn .= "</td>\n";
                    $strReturn .= "</tr>";
                }
            }
        }

        return $strReturn;
    }
protected function multiFieldAsHtml ( $ objField , $ hideEmpty = false , $ intDynamicCount = 0 ) { $ strReturn = "" ; // If this multi field was rendered invisible due to conditions, // don't show it on the valuesAsHtml overview either. if ( ! $ this -> elementShouldDisplay ( $ objField ) ) { return $ strReturn ; } if ( $ objField -> hasContent ( $ intDynamicCount ) ) { if ( $ objField -> hasFields ( ) ) { $ strValue = "" ; $ objSubFields = $ objField -> getFields ( ) ; $ intCount = 0 ; foreach ( $ objSubFields as $ objSubField ) { $ intCount ++ ; if ( get_class ( $ objSubField ) == "ValidFormBuilder\\Hidden" && $ objSubField -> isDynamicCounter ( ) ) { continue ; } $ varValue = $ objSubField -> getValue ( $ intDynamicCount ) ; $ strValue .= ( is_array ( $ varValue ) ) ? implode ( ", " , $ varValue ) : $ varValue ; $ strValue .= ( $ objSubFields -> count ( ) > $ intCount ) ? " " : "" ; } $ strValue = trim ( $ strValue ) ; $ strLabel = $ objField -> getShortLabel ( ) ; if ( ( ! empty ( $ strValue ) && $ hideEmpty ) || ( ! $ hideEmpty && ! empty ( $ strValue ) ) ) { $ strValue = htmlspecialchars ( $ strValue , ENT_QUOTES ) ; $ strValue = nl2br ( $ strValue ) ; $ strReturn .= "<tr class=\"vf__field_value\">" ; $ strReturn .= "<td valign=\"top\"" ; $ strReturn .= " style=\"white-space:nowrap; padding-right: 20px\"" ; $ strReturn .= " class=\"vf__field\">" ; $ strReturn .= $ strLabel ; $ strReturn .= "</td>" ; $ strReturn .= "<td valign=\"top\" class=\"vf__value\">" ; $ strReturn .= "<strong>" . $ strValue . "</strong>" ; $ strReturn .= "</td>\n" ; $ strReturn .= "</tr>" ; } } } return $ strReturn ; }
Generates HTML output for the given MultiField object and its child elements

@param MultiField $objField The Area object to parse
@param boolean $hideEmpty Set to true to hide empty field values from the overview. Defaults to false.
@param integer $intDynamicCount The dynamic counter for the current MultiField being parsed
@return string Generated HTML
Generates HTML output for the given MultiField object and its child elements