original_string: protected function matchWithToJs($intDynamicPosition = 0)
      {
          $strReturn = "";
  
          $objMatchWith = $this->getValidator()->getMatchWith();
          if (is_object($objMatchWith)) {
              $strId = ($intDynamicPosition == 0) ? $this->__id : $this->__id . "_" . $intDynamicPosition;
              $strMatchId = ($intDynamicPosition == 0) ? $objMatchWith->getId() : $objMatchWith->getId() . "_" . $intDynamicPosition;
              $strReturn = "objForm.matchfields('{$strId}', '{$strMatchId}', '" . $this->__validator->getMatchWithError() . "');\n";
          }
  
          return $strReturn;
      }
code: protected function matchWithToJs($intDynamicPosition = 0)
      {
          $strReturn = "";
  
          $objMatchWith = $this->getValidator()->getMatchWith();
          if (is_object($objMatchWith)) {
              $strId = ($intDynamicPosition == 0) ? $this->__id : $this->__id . "_" . $intDynamicPosition;
              $strMatchId = ($intDynamicPosition == 0) ? $objMatchWith->getId() : $objMatchWith->getId() . "_" . $intDynamicPosition;
              $strReturn = "objForm.matchfields('{$strId}', '{$strMatchId}', '" . $this->__validator->getMatchWithError() . "');\n";
          }
  
          return $strReturn;
      }
code_tokens: protected function matchWithToJs ( $ intDynamicPosition = 0 ) { $ strReturn = "" ; $ objMatchWith = $ this -> getValidator ( ) -> getMatchWith ( ) ; if ( is_object ( $ objMatchWith ) ) { $ strId = ( $ intDynamicPosition == 0 ) ? $ this -> __id : $ this -> __id . "_" . $ intDynamicPosition ; $ strMatchId = ( $ intDynamicPosition == 0 ) ? $ objMatchWith -> getId ( ) : $ objMatchWith -> getId ( ) . "_" . $ intDynamicPosition ; $ strReturn = "objForm.matchfields('{$strId}', '{$strMatchId}', '" . $ this -> __validator -> getMatchWithError ( ) . "');\n" ; } return $ strReturn ; }
docstring: Generate matchWith javascript code
  @param integer $intDynamicPosition
  @return string Generated javascript
docstring_tokens: Generate matchWith javascript code