original_string: protected function fieldAsHtml($objField, $hideEmpty = false, $intDynamicCount = 0)
      {
          $strReturn = "";
  
          $strLabel = $objField->getShortLabel(); // Passing 'true' gets the short label if available.
          $varValue = ($intDynamicCount > 0) ? $objField->getValue($intDynamicCount) : $objField->getValue();
          $strValue = (is_array($varValue)) ? implode(", ", $varValue) : $varValue;
          
          // If this field was rendered invisible due to conditions,
          // don't show it on the valuesAsHtml overview either.
          if (!$this->elementShouldDisplay($objField)) {
              return $strReturn;
          }
  
          if ((! empty($strValue) && $hideEmpty) || (! $hideEmpty && ! is_null($strValue))) {
              if ((get_class($objField) == "ValidFormBuilder\\Hidden") && $objField->isDynamicCounter()) {
                  return $strReturn;
              } else {
                  switch ($objField->getType()) {
                      case static::VFORM_BOOLEAN:
                          $strValue = ($strValue == 1) ? "yes" : "no";
                          break;
                  }
  
                  if (empty($strLabel) && empty($strValue)) {
                      // *** Skip the field.
                  } else {
                      $strValue = htmlspecialchars($strValue, ENT_QUOTES);
                      $strValue = nl2br($strValue);
  
                      $strReturn .= "<tr class=\"vf__field_value\">";
                      $strReturn .= "<td valign=\"top\" style=\"padding-right: 20px\" 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;
      }
code: protected function fieldAsHtml($objField, $hideEmpty = false, $intDynamicCount = 0)
      {
          $strReturn = "";
  
          $strLabel = $objField->getShortLabel(); // Passing 'true' gets the short label if available.
          $varValue = ($intDynamicCount > 0) ? $objField->getValue($intDynamicCount) : $objField->getValue();
          $strValue = (is_array($varValue)) ? implode(", ", $varValue) : $varValue;
          
          // If this field was rendered invisible due to conditions,
          // don't show it on the valuesAsHtml overview either.
          if (!$this->elementShouldDisplay($objField)) {
              return $strReturn;
          }
  
          if ((! empty($strValue) && $hideEmpty) || (! $hideEmpty && ! is_null($strValue))) {
              if ((get_class($objField) == "ValidFormBuilder\\Hidden") && $objField->isDynamicCounter()) {
                  return $strReturn;
              } else {
                  switch ($objField->getType()) {
                      case static::VFORM_BOOLEAN:
                          $strValue = ($strValue == 1) ? "yes" : "no";
                          break;
                  }
  
                  if (empty($strLabel) && empty($strValue)) {
                      // *** Skip the field.
                  } else {
                      $strValue = htmlspecialchars($strValue, ENT_QUOTES);
                      $strValue = nl2br($strValue);
  
                      $strReturn .= "<tr class=\"vf__field_value\">";
                      $strReturn .= "<td valign=\"top\" style=\"padding-right: 20px\" 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;
      }
code_tokens: protected function fieldAsHtml ( $ objField , $ hideEmpty = false , $ intDynamicCount = 0 ) { $ strReturn = "" ; $ strLabel = $ objField -> getShortLabel ( ) ; // Passing 'true' gets the short label if available. $ varValue = ( $ intDynamicCount > 0 ) ? $ objField -> getValue ( $ intDynamicCount ) : $ objField -> getValue ( ) ; $ strValue = ( is_array ( $ varValue ) ) ? implode ( ", " , $ varValue ) : $ varValue ; // If this field was rendered invisible due to conditions, // don't show it on the valuesAsHtml overview either. if ( ! $ this -> elementShouldDisplay ( $ objField ) ) { return $ strReturn ; } if ( ( ! empty ( $ strValue ) && $ hideEmpty ) || ( ! $ hideEmpty && ! is_null ( $ strValue ) ) ) { if ( ( get_class ( $ objField ) == "ValidFormBuilder\\Hidden" ) && $ objField -> isDynamicCounter ( ) ) { return $ strReturn ; } else { switch ( $ objField -> getType ( ) ) { case static :: VFORM_BOOLEAN : $ strValue = ( $ strValue == 1 ) ? "yes" : "no" ; break ; } if ( empty ( $ strLabel ) && empty ( $ strValue ) ) { // *** Skip the field. } else { $ strValue = htmlspecialchars ( $ strValue , ENT_QUOTES ) ; $ strValue = nl2br ( $ strValue ) ; $ strReturn .= "<tr class=\"vf__field_value\">" ; $ strReturn .= "<td valign=\"top\" style=\"padding-right: 20px\" 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 ; }
docstring: Generates HTML output for the given field object and its child elements
  
  @param Element $objField The Element class-based 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 Element being parsed
  @return string Generated HTML
docstring_tokens: Generates HTML output for the given field object and its child elements