Add all remaining params in `$this->requestGlobalGet` into given reference URL string `$targetUrl`.
@param string $targetUrl
177976
protected function redirectAddAllRemainingInGlobalGet (& $targetUrl) {
		if ($this->requestGlobalGet) {
			$amp = $this->getQueryStringParamsSepatator();
			//foreach ($this->requestGlobalGet as $paramName => & $paramValue)
			//	$paramValue = rawurldecode($paramValue);
			$questionMarkDelimiter = mb_strpos($targetUrl, '?') === FALSE ? '?' : $amp;
			$targetUrl .= $questionMarkDelimiter . str_replace(
				'%2F', '/', 
				http_build_query($this->requestGlobalGet, '', $amp, PHP_QUERY_RFC3986)
			);
		}
	}
1354613
public function add(InstallTarget $target)
    {
        $this->targets[$target->getName()] = $target;

        if (!$this->defaultTarget) {
            $this->defaultTarget = $target;
        }
    }
224056
public function setTargetSize($targetWidth, $targetHeight)
    {
        $this->targetWidth = $targetWidth;
        $this->targetHeight = $targetHeight;

        return $this;
    }
972961
public function addItem($linkName, $target = null)
    {
        if (is_array($target)) {
            $target = isset($target['params']) ? $this->urlGen->generate(
                $target['route'],
                $target['params']
            ) : $this->urlGen->generate($target['route']);
        }
        $this->items[] = ["linkName" => $linkName, "target" => $target];
    }
1340224
public static function set_url( $url ) {
		self::debug( 'Set URL: ' . $url, 'bootstrap' );
		$url_parts = Utils\parse_url( $url );
		self::set_url_params( $url_parts );
	}
489481
public function apply($query, $target, $value, $parameters = [])
    {
        $this->model      = $query->getModel();
        $this->parameters = $parameters;

        $targets = $this->parseTargets($target);

        // If there is only a single target, do not group the condition.
        if (count($targets) == 1) {

            $this->applyForSingleTarget($query, head($targets), $value, true);

            return;
        }

        // If we combine with the 'or' operator, group the filter's conditions
        // so the relation with the other filters is kept inclusive.

        $query->where(function ($query) use ($targets, $value) {

            $this->combineOr = true;

            foreach ($targets as $index => $singleTarget) {

                $this->applyForSingleTarget($query, $singleTarget, $value, $index < 1);
            }
        });
    }
142687
public function addImageFromUrl($url) {
        if (is_string($url)) {
            // URL specified as a string. Create a URL instance
            $url = GuzzleUrl::factory($url);
        }

        if (!($url instanceof GuzzleUrl)) {
            // Invalid argument
            throw new InvalidArgumentException(
                'Parameter must be a string or an instance of Guzzle\Http\Url'
            );
        }

        if (!$url->getScheme()) {
            throw new InvalidArgumentException('URL is missing scheme: ' . (string) $url);
        }

        // Fetch the image we want to add
        $image = (string) $this->get($url)->send()->getBody();

        return $this->addImageFromString($image);
    }
421749
protected function getRedirectUrl($target, ServerRequestInterface $request)
    {
        $param = $this->getConfig('queryParam');
        if ($param === null) {
            return $target;
        }

        $uri = $request->getUri();
        if (property_exists($uri, 'base')) {
            $uri = $uri->withPath($uri->base . $uri->getPath());
        }
        $query = urlencode($param) . '=' . urlencode($uri);

        $url = parse_url($target);
        if (isset($url['query']) && strlen($url['query'])) {
            $url['query'] .= '&' . $query;
        } else {
            $url['query'] = $query;
        }
        $fragment = isset($url['fragment']) ? '#' . $url['fragment'] : '';

        return $url['path'] . '?' . $url['query'] . $fragment;
    }
1023729
function setTarget($target = null, $preserveHost = true)
    {
        $target = (string) $target;
        if (empty($target) && $target !== "0")
            $target = '/';
        
        // validate uri
        if (parse_url($target) === false)
        {
            $target = rawurlencode($target);

            /*
            throw new \InvalidArgumentException(sprintf(
                'Malformed URI: (%s).'
                , $target
            ));
            */
        }

        
        $this->target_uri = (string) $target;
        return $this;
    }
663502
public function setUrl($url, $url_title = null) {
		if ($url == '') throw new \InvalidArgumentException('url parameter is empty');
		$this->url = $url;
		$this->url_title = $url_title;
	}
542873
static function RedirectRelative($target, $noExit = false)
    {
        session_write_close();
        $dirName =  dirname($_SERVER["PHP_SELF"]);
        if ($dirName == "/")
            $dirName = "";
        header("Location: " .  "http://" . $_SERVER["HTTP_HOST"]
            . $dirName
            . "/" .  $target);
        if (!$noExit)
        {
            exit();
        }
    }
1076982
public void addTargetHandler( TargetHandler targetItf ) {

		if( targetItf != null ) {
			this.logger.info( "Target handler '" + targetItf.getTargetId() + "' is now available in Roboconf's DM." );

			synchronized( this.targetHandlers ) {
				this.targetHandlers.add( targetItf );
			}

			listTargets( this.targetHandlers, this.logger );
		}
	}
574622
public function setTargetAvailableDate(\Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $targetAvailableDate)
    {
        $this->targetAvailableDate = $targetAvailableDate;
    }
3905
protected function _storeTargetUrl() {
        $request = $this->getRequest();
        // Only store targetUrl when method = GET. A redirect to a POST request is useless.
        if (!$request->isGet()) {
            return;
        }

        // Allow ?targetUrl=/path/to/elsewhere on any URL
        if (!$targetUrl = $request->getParam('targetUrl')) {
            $targetUrl = $request->getRequestUri();
            $baseUrl = $request->getBaseUrl();
            /**
             * Remove the baseUrl from the targetUrl. This is neccessary
             * when Garp is installed in a subfolder.
             */
            $targetUrl = Garp_Util_String::strReplaceOnce($baseUrl, '', $targetUrl);
        }

        if ($targetUrl !== '/favicon.ico' && !$request->isXmlHttpRequest()) {
            $store = Garp_Auth::getInstance()->getStore();
            $store->targetUrl = $targetUrl;
        }
    }
481767
public function setTargetExpirationDate(\Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $targetExpirationDate)
    {
        $this->targetExpirationDate = $targetExpirationDate;
    }
281604
public function serialize($targetFile,$data)
    {
        $contents = serialize($data);
        $this->putFileContents($targetFile,$contents);
    }
524341
public function addURLs($urls)
  {
    PHPCrawlerBenchmark::start("adding_urls_to_sqlitecache");

    $this->PDO->exec("BEGIN EXCLUSIVE TRANSACTION;");

    $cnt = count($urls);
    for ($x=0; $x<$cnt; $x++)
    {
      if ($urls[$x] != null)
      {
        $this->addURL($urls[$x]);
      }

      // Commit after 1000 URLs (reduces memory-usage)
      if ($x%1000 == 0 && $x > 0)
      {
        $this->PDO->exec("COMMIT;");
        $this->PDO->exec("BEGIN EXCLUSIVE TRANSACTION;");
      }
    }

    $this->PDO->exec("COMMIT;");
    $this->PreparedInsertStatement->closeCursor();

    if ($this->db_analyzed == false)
    {
      $this->PDO->exec("ANALYZE;");
      $this->db_analyzed = true;
    }

    PHPCrawlerBenchmark::stop("adding_urls_to_sqlitecache");
  }