Neos\Flow\Http\Uri::setQuery PHP Méthode

setQuery() public méthode

Sets the URI's query part. Updates (= overwrites) the arguments accordingly!
public setQuery ( string $query ) : void
$query string The query string.
Résultat void
    public function setQuery($query)
    {
        $this->query = $query;
        parse_str($query, $this->arguments);
    }

Usage Example

Exemple #1
0
 /**
  * Tries to detect the base URI of request.
  *
  * @return void
  */
 protected function detectBaseUri()
 {
     if ($this->baseUri === null) {
         $this->baseUri = clone $this->uri;
         $this->baseUri->setQuery(null);
         $this->baseUri->setFragment(null);
         $this->baseUri->setPath($this->getScriptRequestPath());
     }
 }