PHP Класс Neos\Flow\Http\Uri

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$arguments array Array representation of the URI query
$fragment string Fragment / anchor, if one was specified.
$host string Host of the locator, eg. some.subdomain.example.com
$password string Password of a login, if any
$path string The hierarchical part of the URI, eg. /products/acme_soap
$port integer Port of the locator, if any was specified. Eg. 80
$query string Query string of the locator, if any. Eg. color=red&size=large
$scheme string The scheme / protocol of the locator, eg. http
$username string User name of a login, if any

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

Метод Описание
__construct ( string $uriString ) Constructs the URI object from a string
__toString ( ) : string Returns a string representation of this URI
getArguments ( ) : array Returns the arguments from the URI's query part
getFragment ( ) : string Returns the fragment / anchor, if any
getHost ( ) : string Returns the host(s) of the URI
getPassword ( ) : string Returns the password of a login
getPath ( ) : string Returns the URI path
getPort ( ) : integer Returns the port of the URI
getQuery ( ) : string Returns the URI's query part
getScheme ( ) : string Returns the URI's scheme / protocol
getUsername ( ) : string Returns the username of a login
setFragment ( string $fragment ) : void Sets the fragment in the URI
setHost ( string $host ) : void Sets the host(s) of the URI
setPassword ( string $password ) : void Sets the URI's password
setPath ( string $path ) : void Sets the path of the URI
setPort ( string $port ) : void Sets the port in the URI
setQuery ( string $query ) : void Sets the URI's query part. Updates (= overwrites) the arguments accordingly!
setScheme ( string $scheme ) : void Sets the URI's scheme / protocol
setUsername ( string $username ) : void Sets the URI's username

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

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

Constructs the URI object from a string
public __construct ( string $uriString )
$uriString string String representation of the URI

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

Returns a string representation of this URI
public __toString ( ) : string
Результат string This URI as a string

getArguments() публичный Метод

Returns the arguments from the URI's query part
public getArguments ( ) : array
Результат array Associative array of arguments and values of the URI's query part

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

Returns the fragment / anchor, if any
public getFragment ( ) : string
Результат string The fragment

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

Returns the host(s) of the URI
public getHost ( ) : string
Результат string The hostname(s)

getPassword() публичный Метод

Returns the password of a login
public getPassword ( ) : string
Результат string Password of the login

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

Returns the URI path
public getPath ( ) : string
Результат string URI path

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

Returns the port of the URI
public getPort ( ) : integer
Результат integer Port

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

Returns the URI's query part
public getQuery ( ) : string
Результат string The query part

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

Returns the URI's scheme / protocol
public getScheme ( ) : string
Результат string URI scheme / protocol

getUsername() публичный Метод

Returns the username of a login
public getUsername ( ) : string
Результат string User name of the login

setFragment() публичный Метод

Sets the fragment in the URI
public setFragment ( string $fragment ) : void
$fragment string The fragment (aka "anchor")
Результат void

setHost() публичный Метод

Sets the host(s) of the URI
public setHost ( string $host ) : void
$host string The hostname(s)
Результат void

setPassword() публичный Метод

Sets the URI's password
public setPassword ( string $password ) : void
$password string Password of the login
Результат void

setPath() публичный Метод

Sets the path of the URI
public setPath ( string $path ) : void
$path string The path
Результат void

setPort() публичный Метод

Sets the port in the URI
public setPort ( string $port ) : void
$port string The port number
Результат void

setQuery() публичный Метод

Sets the URI's query part. Updates (= overwrites) the arguments accordingly!
public setQuery ( string $query ) : void
$query string The query string.
Результат void

setScheme() публичный Метод

Sets the URI's scheme / protocol
public setScheme ( string $scheme ) : void
$scheme string The scheme. Allowed values are "http" and "https"
Результат void

setUsername() публичный Метод

Sets the URI's username
public setUsername ( string $username ) : void
$username string User name of the login
Результат void

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

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

Array representation of the URI query
protected array $arguments
Результат array

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

Fragment / anchor, if one was specified.
protected string $fragment
Результат string

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

Host of the locator, eg. some.subdomain.example.com
protected string $host
Результат string

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

Password of a login, if any
protected string $password
Результат string

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

The hierarchical part of the URI, eg. /products/acme_soap
protected string $path
Результат string

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

Port of the locator, if any was specified. Eg. 80
protected int $port
Результат integer

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

Query string of the locator, if any. Eg. color=red&size=large
protected string $query
Результат string

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

The scheme / protocol of the locator, eg. http
protected string $scheme
Результат string

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

User name of a login, if any
protected string $username
Результат string