UriNormalizer
in package
Table of Contents
- CAPITALIZE_PERCENT_ENCODING = 1
- CONVERT_EMPTY_PATH = 4
- DECODE_UNRESERVED_CHARACTERS = 2
- PRESERVING_NORMALIZATIONS = 63
- REMOVE_DEFAULT_HOST = 8
- REMOVE_DEFAULT_PORT = 16
- REMOVE_DOT_SEGMENTS = 32
- REMOVE_DUPLICATE_SLASHES = 64
- SORT_QUERY_PARAMETERS = 128
- isEquivalent() : bool
- normalize() : UriInterface
- __construct() : mixed
- capitalizePercentEncoding() : UriInterface
- decodeUnreservedCharacters() : UriInterface
Constants
CAPITALIZE_PERCENT_ENCODING
public
mixed
CAPITALIZE_PERCENT_ENCODING
= 1
CONVERT_EMPTY_PATH
public
mixed
CONVERT_EMPTY_PATH
= 4
DECODE_UNRESERVED_CHARACTERS
public
mixed
DECODE_UNRESERVED_CHARACTERS
= 2
PRESERVING_NORMALIZATIONS
public
mixed
PRESERVING_NORMALIZATIONS
= 63
REMOVE_DEFAULT_HOST
public
mixed
REMOVE_DEFAULT_HOST
= 8
REMOVE_DEFAULT_PORT
public
mixed
REMOVE_DEFAULT_PORT
= 16
REMOVE_DOT_SEGMENTS
public
mixed
REMOVE_DOT_SEGMENTS
= 32
REMOVE_DUPLICATE_SLASHES
public
mixed
REMOVE_DUPLICATE_SLASHES
= 64
SORT_QUERY_PARAMETERS
public
mixed
SORT_QUERY_PARAMETERS
= 128
Methods
isEquivalent()
public
static isEquivalent(UriInterface $uri1, UriInterface $uri2[, mixed $normalizations = self::PRESERVING_NORMALIZATIONS ]) : bool
Parameters
- $uri1 : UriInterface
- $uri2 : UriInterface
- $normalizations : mixed = self::PRESERVING_NORMALIZATIONS
Return values
bool —normalize()
public
static normalize(UriInterface $uri[, mixed $flags = self::PRESERVING_NORMALIZATIONS ]) : UriInterface
Parameters
- $uri : UriInterface
- $flags : mixed = self::PRESERVING_NORMALIZATIONS
Return values
UriInterface —__construct()
private
__construct() : mixed
Return values
mixed —capitalizePercentEncoding()
private
static capitalizePercentEncoding(UriInterface $uri) : UriInterface
Parameters
- $uri : UriInterface
Return values
UriInterface —decodeUnreservedCharacters()
private
static decodeUnreservedCharacters(UriInterface $uri) : UriInterface
Parameters
- $uri : UriInterface