Open Journal Systems  3.3.0
Guzzle\Parser\Url\UrlParser Class Reference
Inheritance diagram for Guzzle\Parser\Url\UrlParser:
Guzzle\Parser\Url\UrlParserInterface

Public Member Functions

 parseUrl ($url)
 
 setUtf8Support ($utf8)
 

Protected Attributes

 $utf8 = false
 

Detailed Description

Parses URLs into parts using PHP's built-in parse_url() function

Deprecated:
Just use parse_url. UTF-8 characters should be percent encoded anyways. @codeCoverageIgnore

Definition at line 12 of file UrlParser.php.

Member Function Documentation

◆ parseUrl()

Guzzle\Parser\Url\UrlParser::parseUrl (   $url)

Parse a URL using special handling for a subset of UTF-8 characters in the query string if needed.

Parameters
string$urlURL to parse
Returns
array Returns an array identical to what is returned from parse_url(). When an array key is missing from this array, you must fill it in with NULL to avoid warnings in calling code.

Implements Guzzle\Parser\Url\UrlParserInterface.

Definition at line 30 of file UrlParser.php.

References Guzzle\Common\Version\warn().

◆ setUtf8Support()

Guzzle\Parser\Url\UrlParser::setUtf8Support (   $utf8)

Set whether or not to attempt to handle UTF-8 strings (still WIP)

Parameters
bool$utf8Set to TRUE to handle UTF string

Definition at line 25 of file UrlParser.php.

References Guzzle\Parser\Url\UrlParser\$utf8.

Field Documentation

◆ $utf8

bool Guzzle\Parser\Url\UrlParser::$utf8 = false
protected

Whether or not to work with UTF-8 strings

Definition at line 18 of file UrlParser.php.

Referenced by Guzzle\Parser\Url\UrlParser\setUtf8Support().


The documentation for this class was generated from the following file: