Get some parameters that should be added to every link.

@return array
501438
protected function getPassThruParams()
    {

        if ($this->passThruParams !== null) {
            return $this->passThruParams;
        }

        $this->passThruParams = [];

        $all = Input::all();

        $filtered = array_except($all, ['sync','uploadedFile','folderName']);

        // Security check
        if (count($filtered) > 30) {
            throw new RuntimeException('Too many query params');
        }

        foreach ($filtered as $key=>$value) {
            $this->passThruParams[$key] = strip_tags($value);
        }

        return $this->passThruParams;

    }
1318678
public function getHomeParameters()
    {
        return [
            'homeMenu' => $this->configHandler->getParameter('home_menu'),
            'footerLogin' => $this->configHandler->getParameter('footer_login'),
            'footerWorkspaces' => $this->configHandler->getParameter('footer_workspaces'),
            'headerLocale' => $this->configHandler->getParameter('header_locale'),
        ];
    }
918520
public function getWhereParameters()
    {
        $params = [];
        foreach ($this->filters as $filter) {
            $params = array_merge($params, $filter->getParameters());
        }

        return $params;
    }
5106
public function getAdditionalParams()
    {
        $sAddParams = \OxidEsales\Eshop\Application\Controller\FrontendController::getAdditionalParams();

        if ($oRecomm = $this->getActiveRecommList()) {
            $sAddParams .= "&amp;recommid=" . $oRecomm->getId();
        }

        if ($sSearch = $this->getRecommSearch()) {
            $sAddParams .= "&amp;searchrecomm=" . rawurlencode($sSearch);
        }

        return $sAddParams;
    }
1237918
protected function getParametersAliases()
    {
        return array(
            'user_id' => self::LTI_USER_ID,
            'oauth_consumer_key' => self::LTI_CONSUMER_KEY,
            'label' => OntologyRdfs::RDFS_LABEL,
            'oauth-key' => DataStore::PROPERTY_OAUTH_KEY,
            'oauth-secret' => DataStore::PROPERTY_OAUTH_SECRET,
            'oauth-callback-url' => DataStore::PROPERTY_OAUTH_CALLBACK,
        );
    }
184460
public static function parseParameters($link)
    {
        $pos = strpos($link, '?');
        if ($pos !== null) {
            $link = substr($link, $pos + 1);
        }

        $params = [];
        parse_str($link, $params);

        return $params;
    }
89375
public function getNavigationParams()
    {
        $parameters = parent::getNavigationParams();

        if ($sourceClass = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("sourcecl")) {
            $parameters['sourcecl'] = $sourceClass;
        }

        if ($articleId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("anid")) {
            $parameters['anid'] = $articleId;
        }

        return $parameters;
    }
1271070
public function get_external_parameters() {
        $editorparams = array('text' => new external_value(PARAM_RAW, 'The text for this feedback.'),
                              'format' => new external_value(PARAM_INT, 'The format for this feedback'));
        $editorstructure = new external_single_structure($editorparams, 'Editor structure', VALUE_OPTIONAL);
        return array('assignfeedbackcomments_editor' => $editorstructure);
    }
1247105
public function getLinks()
    {
        $result     = array();
        $service    = $this->getServiceLocator();
        $rendered   = null;
        $active     = null;
        $defaultUri = null;
        $siteInfo   = null;
        $available  = $service->get( 'Locale' )
                              ->getAvailableFlags();

        try
        {
            /* @var $rendered \Paragraph\Model\Paragraph\Structure\Content */
            $rendered = $service->get( 'RenderedContent' );

            if ( ! $rendered instanceof Content )
            {
                throw new ServiceNotFoundException;
            }

            $defaultUri = '/app/%locale%/paragraph/render/' . $rendered->id;
            $active     = $rendered->getMapper()->getLocale();
        }
        catch ( ServiceNotFoundException $ex )
        {
            /* @var $request \Zend\Http\PhpEnvironment\Request */
            $request    = $service->get( 'Request' );
            $requestUri = $request->getRequestUri();
            $matches    = array();

            if ( preg_match( '#^/?app/([^/]+)/(.*)$#', $requestUri, $matches ) )
            {
                $defaultUri = '/app/%locale%/' . $matches[2];
                $active     = $matches[1];
            }
        }

        if ( ! empty( $defaultUri ) )
        {
            $selected   = $this->locales;
            $all        = array_keys( array_filter( $available ) );

            if ( empty( $selected ) )
            {
                $selected = $all;
            }

            foreach ( $all as $locale )
            {
                $link = array(
                    'selected'  => in_array( $locale, $selected ),
                    'active'    => $active == $locale,
                    'uri'       => str_replace(
                        '%locale%',
                        $locale,
                        $defaultUri
                    ),
                );

                if ( $rendered instanceof Content )
                {
                    if ( null === $siteInfo )
                    {
                        $siteInfo = $service->get( 'Zork\Db\SiteInfo' );
                    }

                    $uri = $this->getUriModel()
                                ->findDefaultByContentSubdomain(
                                    $rendered->id,
                                    $siteInfo->getSubdomainId(),
                                    $locale
                                );

                    if ( ! empty( $uri ) )
                    {
                        $link['uri'] = '/' . $uri->safeUri;
                    }
                }

                $result[$locale] = $link;
            }
        }

        return $result;
    }
763038
protected function getRawParameters()
    {
        $params = $this->parameters;
        $context = $this->getContext();

        if (empty($params['customerId'])) {
            $params['customerId'] = $context->getCustomerId();
        }

        if ($context->getShopId() and empty($params['shopId'])) {
            $params['shopId'] = $context->getShopId();
        }

        return $params;
    }
941808
public function queryParameters() {
		if(!$this->configured || $this->via != self::QUERY_PARAMETER)
			return array();
		
		return array($this->description->query_parameter => $this->token);
	}
977393
public function getAllParameters()
	{
		// Collect parameters used in template
		$params = [];
		foreach ($this->configurator->tags as $tag)
		{
			if (isset($tag->template))
			{
				foreach ($tag->template->getParameters() as $paramName)
				{
					$params[$paramName] = '';
				}
			}
		}

		// Merge defined parameters and those collected from templates. Defined parameters take
		// precedence
		$params = iterator_to_array($this->parameters) + $params;

		// Sort parameters by name for consistency
		ksort($params);

		return $params;
	}
655753
public function getParams(): array
    {
        $params = [
            'inline_query_id' => $this->inlineQueryId,
        ];

        if ($this->cacheTime) {
            $params['cache_time'] = $this->cacheTime;
        }

        if ($this->isPersonal !== null) {
            $params['is_personal'] = (int)$this->isPersonal;
        }

        if ($this->nextOffset) {
            $params['next_offset'] = $this->nextOffset;
        }

        return $params;
    }
1014181
public function getRequestParameters()
    {
        $aViewVariables = array();

        $aTmp = $this->GetAllInputFieldParameter();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }
        $aTmp = $this->GetUserAddressData();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }
        $aTmp = $this->GetPaymentTypeSpecifivParameter();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }

        return $aViewVariables;
    }
162331
public function getParameterValues()
    {
        $values = array();

        foreach ($this->parameters as $name => $parameter) {
            if (!$parameter->isRequired()) {
                $values[$name] = $parameter->getDefaultValue();
            }
        }

        return $values;
    }
291976
protected function getFindMethodAndParameters()
    {
        $method = '';
        $parameters = [];

        switch ($this->type) {
            case 'string':
                $method = 'get';
                break;
            case 'list':
                $method = 'lrange';
                $parameters = [0, -1];
                break;
            case 'set':
                $method = 'smembers';
                break;
            case 'zset':
                $method = 'zrange';
                $parameters = [0, -1];
                break;
            case 'hash':
                $method = 'hgetall';
                break;
            default:
                break;
        }

        return [$method, $parameters];
    }
1032736
public function getLinks()
    {
        $links = array();
        foreach($this->links as $rel => $href) {
            $simple_rel = $rel;
            $base_uris = array("fx:", static::LINK_RELATIONSHIPS_BASE_URI);
            foreach($base_uris as $base_uri) {
                $pos = strpos($simple_rel, $base_uri);
                if ($pos !== FALSE && ($simple_rel.'/' != $base_uri)) {
                    $simple_rel = substr($simple_rel, strlen($base_uri));
                }
            }
            $links[$simple_rel] = $href;
        }
        return $links;
    }