[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/laminas/laminas-diactoros/src/ -> Uri.php (summary)

(no description)

Copyright: https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
License: https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
File Size: 698 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Uri:: (30 methods):
  __construct()
  __clone()
  __toString()
  getScheme()
  getAuthority()
  getUserInfo()
  getHost()
  getPort()
  getPath()
  getQuery()
  getFragment()
  withScheme()
  withUserInfo()
  withHost()
  withPort()
  withPath()
  withQuery()
  withFragment()
  parseUri()
  createUriString()
  isNonStandardPort()
  filterScheme()
  filterUserInfoPart()
  filterPath()
  filterInvalidUtf8()
  filterQuery()
  splitQueryValue()
  filterFragment()
  filterQueryOrFragment()
  urlEncodeChar()


Class: Uri  - X-Ref

Implementation of Psr\Http\UriInterface.

Provides a value object representing a URI for HTTP requests.

Instances of this class  are considered immutable; all methods that
might change state are implemented such that they retain the internal
state of the current instance and return a new instance that contains the
changed state.
__construct(string $uri = '')   X-Ref
generated uri string cache


__clone()   X-Ref
Operations to perform on clone.

Since cloning usually is for purposes of mutation, we reset the
$uriString property so it will be re-calculated.

__toString()   X-Ref
{@inheritdoc}


getScheme()   X-Ref
{@inheritdoc}


getAuthority()   X-Ref
{@inheritdoc}


getUserInfo()   X-Ref
Retrieve the user-info part of the URI.

This value is percent-encoded, per RFC 3986 Section 3.2.1.

{@inheritdoc}

getHost()   X-Ref
{@inheritdoc}


getPort()   X-Ref
{@inheritdoc}


getPath()   X-Ref
{@inheritdoc}


getQuery()   X-Ref
{@inheritdoc}


getFragment()   X-Ref
{@inheritdoc}


withScheme($scheme)   X-Ref
{@inheritdoc}


withUserInfo($user, $password = null)   X-Ref
Create and return a new instance containing the provided user credentials.

The value will be percent-encoded in the new instance, but with measures
taken to prevent double-encoding.

{@inheritdoc}

withHost($host)   X-Ref
{@inheritdoc}


withPort($port)   X-Ref
{@inheritdoc}


withPath($path)   X-Ref
{@inheritdoc}


withQuery($query)   X-Ref
{@inheritdoc}


withFragment($fragment)   X-Ref
{@inheritdoc}


parseUri(string $uri)   X-Ref
Parse a URI into its parts, and set the properties


createUriString(string $scheme,string $authority,string $path,string $query,string $fragment)   X-Ref
Create a URI string from its various parts


isNonStandardPort(string $scheme, string $host, ?int $port)   X-Ref
Is a given port non-standard for the current scheme?


filterScheme(string $scheme)   X-Ref
Filters the scheme to ensure it is a valid scheme.

param: string $scheme Scheme name.
return: string Filtered scheme.

filterUserInfoPart(string $part)   X-Ref
Filters a part of user info in a URI to ensure it is properly encoded.

param: string $part
return: string

filterPath(string $path)   X-Ref
Filters the path of a URI to ensure it is properly encoded.


filterInvalidUtf8(string $string)   X-Ref
Encode invalid UTF-8 characters in given string. All other characters are unchanged.


filterQuery(string $query)   X-Ref
Filter a query string to ensure it is propertly encoded.

Ensures that the values in the query string are properly urlencoded.

splitQueryValue(string $value)   X-Ref
Split a query value into a key/value tuple.

param: string $value
return: array A value with exactly two elements, key and value

filterFragment(string $fragment)   X-Ref
Filter a fragment value to ensure it is properly encoded.


filterQueryOrFragment(string $value)   X-Ref
Filter a query string key or value, or a fragment.


urlEncodeChar(array $matches)   X-Ref
URL encode a character returned by a regex.




Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer