src/FrontendIntegration/FrontendFilter.php
protected function getJumpToUrl($arrParams)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            sprintf('"%1$s" has been deprecated in favor of the new "FilterUrlBuilder"', __METHOD__),
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        $strFilterAction = '';
        foreach ($arrParams as $strName => $varParam) {
            // Skip the magic "language" parameter.
            if (($strName == 'language') && $GLOBALS['TL_CONFIG']['addLanguageToUrl']) {
                continue;
            }

            $strValue = $varParam;

            if (is_array($varParam)) {
                $strValue = implode(',', array_filter($varParam));
            }

            if (strlen($strValue)) {
                // Shift auto_item to the front.
                if ($strName == 'auto_item') {
                    $strFilterAction = '/' . rawurlencode(rawurlencode($strValue)) . $strFilterAction;
                    continue;
                }

                $strFilterAction .= sprintf(
                    $GLOBALS['TL_CONFIG']['disableAlias'] ? '&amp;%s=%s' : '/%s/%s',
                    rawurlencode($strName),
                    // Double rawurlencode to encode all special characters.
                    // Look at http://php.net/manual/en/function.rawurlencode.php .
                    rawurlencode(rawurlencode($strValue))
                );
            }
        }
        return $strFilterAction;
    }
protected function getJumpToUrl($arrParams)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            sprintf('"%1$s" has been deprecated in favor of the new "FilterUrlBuilder"', __METHOD__),
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        $strFilterAction = '';
        foreach ($arrParams as $strName => $varParam) {
            // Skip the magic "language" parameter.
            if (($strName == 'language') && $GLOBALS['TL_CONFIG']['addLanguageToUrl']) {
                continue;
            }

            $strValue = $varParam;

            if (is_array($varParam)) {
                $strValue = implode(',', array_filter($varParam));
            }

            if (strlen($strValue)) {
                // Shift auto_item to the front.
                if ($strName == 'auto_item') {
                    $strFilterAction = '/' . rawurlencode(rawurlencode($strValue)) . $strFilterAction;
                    continue;
                }

                $strFilterAction .= sprintf(
                    $GLOBALS['TL_CONFIG']['disableAlias'] ? '&amp;%s=%s' : '/%s/%s',
                    rawurlencode($strName),
                    // Double rawurlencode to encode all special characters.
                    // Look at http://php.net/manual/en/function.rawurlencode.php .
                    rawurlencode(rawurlencode($strValue))
                );
            }
        }
        return $strFilterAction;
    }
protected function getJumpToUrl ( $ arrParams ) { // @codingStandardsIgnoreStart @ trigger_error ( sprintf ( '"%1$s" has been deprecated in favor of the new "FilterUrlBuilder"' , __METHOD__ ) , E_USER_DEPRECATED ) ; // @codingStandardsIgnoreEnd $ strFilterAction = '' ; foreach ( $ arrParams as $ strName => $ varParam ) { // Skip the magic "language" parameter. if ( ( $ strName == 'language' ) && $ GLOBALS [ 'TL_CONFIG' ] [ 'addLanguageToUrl' ] ) { continue ; } $ strValue = $ varParam ; if ( is_array ( $ varParam ) ) { $ strValue = implode ( ',' , array_filter ( $ varParam ) ) ; } if ( strlen ( $ strValue ) ) { // Shift auto_item to the front. if ( $ strName == 'auto_item' ) { $ strFilterAction = '/' . rawurlencode ( rawurlencode ( $ strValue ) ) . $ strFilterAction ; continue ; } $ strFilterAction .= sprintf ( $ GLOBALS [ 'TL_CONFIG' ] [ 'disableAlias' ] ? '&amp;%s=%s' : '/%s/%s' , rawurlencode ( $ strName ) , // Double rawurlencode to encode all special characters. // Look at http://php.net/manual/en/function.rawurlencode.php . rawurlencode ( rawurlencode ( $ strValue ) ) ) ; } } return $ strFilterAction ; }
Generate an url determined by the given params and configured jumpTo page.

@param array $arrParams The URL parameters to use.

@return string the generated URL.

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)

@deprecated Do not use.
Generate an url determined by the given params and configured jumpTo page .