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;
    }
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;
    }
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 ; }
Generate matchWith javascript code
@param integer $intDynamicPosition
@return string Generated javascript
Generate matchWith javascript code