PHP Класс Zend\Diactoros\Uri

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.
Наследование: implements Psr\Http\Message\UriInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$allowedSchemes Array indexed by valid scheme names to their corresponding ports.

Открытые методы

Метод Описание
__clone ( ) Operations to perform on clone.
__construct ( string $uri = '' )
__toString ( )
getAuthority ( )
getFragment ( )
getHost ( )
getPath ( )
getPort ( )
getQuery ( )
getScheme ( )
getUserInfo ( )
withFragment ( $fragment )
withHost ( $host )
withPath ( $path )
withPort ( $port )
withQuery ( $query )
withScheme ( $scheme )
withUserInfo ( $user, $password = null )

Приватные методы

Метод Описание
createUriString ( string $scheme, string $authority, string $path, string $query, string $fragment ) : string Create a URI string from its various parts
filterFragment ( null | string $fragment ) : string Filter a fragment value to ensure it is properly encoded.
filterPath ( string $path ) : string Filters the path of a URI to ensure it is properly encoded.
filterQuery ( string $query ) : string Filter a query string to ensure it is propertly encoded.
filterQueryOrFragment ( string $value ) : string Filter a query string key or value, or a fragment.
filterScheme ( string $scheme ) : string Filters the scheme to ensure it is a valid scheme.
isNonStandardPort ( string $scheme, string $host, integer $port ) : boolean Is a given port non-standard for the current scheme?
parseUri ( string $uri ) Parse a URI into its parts, and set the properties
splitQueryValue ( string $value ) : array Split a query value into a key/value tuple.
urlEncodeChar ( array $matches ) : string URL encode a character returned by a regex.

Описание методов

__clone() публичный метод

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

__construct() публичный метод

public __construct ( string $uri = '' )
$uri string

__toString() публичный метод

public __toString ( )

getAuthority() публичный метод

public getAuthority ( )

getFragment() публичный метод

public getFragment ( )

getHost() публичный метод

public getHost ( )

getPath() публичный метод

public getPath ( )

getPort() публичный метод

public getPort ( )

getQuery() публичный метод

public getQuery ( )

getScheme() публичный метод

public getScheme ( )

getUserInfo() публичный метод

public getUserInfo ( )

withFragment() публичный метод

public withFragment ( $fragment )

withHost() публичный метод

public withHost ( $host )

withPath() публичный метод

public withPath ( $path )

withPort() публичный метод

public withPort ( $port )

withQuery() публичный метод

public withQuery ( $query )

withScheme() публичный метод

public withScheme ( $scheme )

withUserInfo() публичный метод

public withUserInfo ( $user, $password = null )

Описание свойств

$allowedSchemes защищенное свойство

Array indexed by valid scheme names to their corresponding ports.
protected $allowedSchemes