src/FilterSetting/AbstractFromTo.php
protected function prepareWidgetParamAndFilterUrl($arrFilterUrl)
    {
        // Split up our param so the widgets can use it again.
        $parameterName    = $this->getParamName();
        $privateFilterUrl = $arrFilterUrl;
        $parameterValue   = null;

        // If we have a value, we have to explode it by double underscore to have a valid value which the active checks
        // may cope with.
        if (\array_key_exists($parameterName, $arrFilterUrl) && !empty($arrFilterUrl[$parameterName])) {
            if (\is_array($arrFilterUrl[$parameterName])) {
                $parameterValue = $arrFilterUrl[$parameterName];
            } else {
                $parameterValue = \explode(',', $arrFilterUrl[$parameterName], 2);
            }

            if ($parameterValue && ($parameterValue[0] || $parameterValue[1])) {
                $privateFilterUrl[$parameterName] = $parameterValue;

                return [$privateFilterUrl, $parameterValue];
            } else {
                // No values given, clear the array.
                $parameterValue = null;

                return [$privateFilterUrl, $parameterValue];
            }
        }

        return [$privateFilterUrl, $parameterValue];
    }
protected function prepareWidgetParamAndFilterUrl($arrFilterUrl)
    {
        // Split up our param so the widgets can use it again.
        $parameterName    = $this->getParamName();
        $privateFilterUrl = $arrFilterUrl;
        $parameterValue   = null;

        // If we have a value, we have to explode it by double underscore to have a valid value which the active checks
        // may cope with.
        if (\array_key_exists($parameterName, $arrFilterUrl) && !empty($arrFilterUrl[$parameterName])) {
            if (\is_array($arrFilterUrl[$parameterName])) {
                $parameterValue = $arrFilterUrl[$parameterName];
            } else {
                $parameterValue = \explode(',', $arrFilterUrl[$parameterName], 2);
            }

            if ($parameterValue && ($parameterValue[0] || $parameterValue[1])) {
                $privateFilterUrl[$parameterName] = $parameterValue;

                return [$privateFilterUrl, $parameterValue];
            } else {
                // No values given, clear the array.
                $parameterValue = null;

                return [$privateFilterUrl, $parameterValue];
            }
        }

        return [$privateFilterUrl, $parameterValue];
    }
protected function prepareWidgetParamAndFilterUrl ( $ arrFilterUrl ) { // Split up our param so the widgets can use it again. $ parameterName = $ this -> getParamName ( ) ; $ privateFilterUrl = $ arrFilterUrl ; $ parameterValue = null ; // If we have a value, we have to explode it by double underscore to have a valid value which the active checks // may cope with. if ( \ array_key_exists ( $ parameterName , $ arrFilterUrl ) && ! empty ( $ arrFilterUrl [ $ parameterName ] ) ) { if ( \ is_array ( $ arrFilterUrl [ $ parameterName ] ) ) { $ parameterValue = $ arrFilterUrl [ $ parameterName ] ; } else { $ parameterValue = \ explode ( ',' , $ arrFilterUrl [ $ parameterName ] , 2 ) ; } if ( $ parameterValue && ( $ parameterValue [ 0 ] || $ parameterValue [ 1 ] ) ) { $ privateFilterUrl [ $ parameterName ] = $ parameterValue ; return [ $ privateFilterUrl , $ parameterValue ] ; } else { // No values given, clear the array. $ parameterValue = null ; return [ $ privateFilterUrl , $ parameterValue ] ; } } return [ $ privateFilterUrl , $ parameterValue ] ; }
Prepare the widget Param and filter url.

@param array $arrFilterUrl The filter url.

@return array
Prepare the widget Param and filter url .