original_string: protected function getDynamicHtml()
      {
          $strReturn = "";
  
          if ($this->__dynamic && !empty($this->__dynamicLabel)) {
              $arrFields = array();
              // Generate an array of field id's
              foreach ($this->__fields as $field) {
                  // Skip the hidden dynamic counter fields.
                  if ((get_class($field) == "ValidFormBuilder\\Hidden") && $field->isDynamicCounter()) {
                      continue;
                  }
  
                  if (!empty($field->getName())) {
                      $arrFields[$field->getId()] = $field->getName();
                  }
              }
  
              $strReturn .= "<div class=\"vf__dynamic\">";
              $strReturn .= "<a href=\"#\" data-target-id=\"" . implode("|", array_keys($arrFields))
                  . "\" data-target-name=\"" . implode("|", array_values($arrFields))
                  . "\"{$this->__getDynamicLabelMetaString()}>{$this->__dynamicLabel}</a>";
              $strReturn .= "</div>";
          }
  
          return $strReturn;
      }
code: protected function getDynamicHtml()
      {
          $strReturn = "";
  
          if ($this->__dynamic && !empty($this->__dynamicLabel)) {
              $arrFields = array();
              // Generate an array of field id's
              foreach ($this->__fields as $field) {
                  // Skip the hidden dynamic counter fields.
                  if ((get_class($field) == "ValidFormBuilder\\Hidden") && $field->isDynamicCounter()) {
                      continue;
                  }
  
                  if (!empty($field->getName())) {
                      $arrFields[$field->getId()] = $field->getName();
                  }
              }
  
              $strReturn .= "<div class=\"vf__dynamic\">";
              $strReturn .= "<a href=\"#\" data-target-id=\"" . implode("|", array_keys($arrFields))
                  . "\" data-target-name=\"" . implode("|", array_values($arrFields))
                  . "\"{$this->__getDynamicLabelMetaString()}>{$this->__dynamicLabel}</a>";
              $strReturn .= "</div>";
          }
  
          return $strReturn;
      }
code_tokens: protected function getDynamicHtml ( ) { $ strReturn = "" ; if ( $ this -> __dynamic && ! empty ( $ this -> __dynamicLabel ) ) { $ arrFields = array ( ) ; // Generate an array of field id's foreach ( $ this -> __fields as $ field ) { // Skip the hidden dynamic counter fields. if ( ( get_class ( $ field ) == "ValidFormBuilder\\Hidden" ) && $ field -> isDynamicCounter ( ) ) { continue ; } if ( ! empty ( $ field -> getName ( ) ) ) { $ arrFields [ $ field -> getId ( ) ] = $ field -> getName ( ) ; } } $ strReturn .= "<div class=\"vf__dynamic\">" ; $ strReturn .= "<a href=\"#\" data-target-id=\"" . implode ( "|" , array_keys ( $ arrFields ) ) . "\" data-target-name=\"" . implode ( "|" , array_values ( $ arrFields ) ) . "\"{$this->__getDynamicLabelMetaString()}>{$this->__dynamicLabel}</a>" ; $ strReturn .= "</div>" ; } return $ strReturn ; }
docstring: Generate dynamic HTML for client-side field duplication
  @return string
docstring_tokens: Generate dynamic HTML for client - side field duplication