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
파일 보기 프로젝트 열기: zendframework/zend-diactoros 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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