1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Uri
Граф наследования:Uri:
ContentUri Uri

Открытые члены

 __construct ($url)
 getUrl ()
 getLocator ()
 getUri ()
 getFragment ()
 getHost ()
 setHost ($host)
 getPass ()
 setPass ($pass)
 getPath ()
 setPath ($path)
 getPathQuery ()
 getPort ()
 getQuery ()
 getScheme ()
 getUser ()
 setUser ($user)
 deleteParams (array $params, $preserveDots=false)
 addParams (array $params, $preserveDots=false)
 __toString ()
 jsonSerialize ()
 convertToPunycode ()
 convertToUnicode ()
 isPathTraversal ()
 toAbsolute (string $host=null)
 resolveRelativeUri (Uri $base)
 getAuthority ()
 getUserInfo ()
 withScheme (string $scheme)
 withUserInfo (string $user, ?string $password=null)
 withHost (string $host)
 withPort (?int $port)
 withPath (string $path)
 withQuery (string $query)
 withFragment (string $fragment)

Открытые статические члены

static urnEncode ($str, $charset='UTF-8')
static urnDecode ($str, $charset=false)

Защищенные статические члены

static parseParams ($params)

Защищенные данные

 $scheme = ''
 $host = ''
 $port = null
 $user = ''
 $pass = ''
 $path = ''
 $query = ''
 $fragment = ''

Подробное описание

См. определение в файле uri.php строка 16

Конструктор(ы)

◆ __construct()

__construct ( $url)
Аргументы
string$url

См. определение в файле uri.php строка 30

Методы

◆ __toString()

__toString ( )

См. определение в файле uri.php строка 349

◆ addParams()

addParams ( array $params,
$preserveDots = false )

Adds parameters to query or replaces existing ones.

Аргументы
array$paramsParameters to add.
bool$preserveDotsSpecial treatment of dots and spaces in the parameters names.
Возвращает
$this

См. определение в файле uri.php строка 322

◆ convertToPunycode()

convertToPunycode ( )

Converts the host to punycode.

Возвращает
string|Main\Error

См. определение в файле uri.php строка 370

◆ convertToUnicode()

convertToUnicode ( )

Converts the host to Unicode.

Возвращает
string|Main\Error

См. определение в файле uri.php строка 388

◆ deleteParams()

deleteParams ( array $params,
$preserveDots = false )

Deletes parameters from the query.

Аргументы
array$paramsParameters to delete.
bool$preserveDotsSpecial treatment of dots and spaces in the parameters names.
Возвращает
$this

См. определение в файле uri.php строка 291

◆ getAuthority()

getAuthority ( )

См. определение в файле uri.php строка 551

◆ getFragment()

getFragment ( )

См. определение в файле uri.php строка 121

◆ getHost()

getHost ( )

См. определение в файле uri.php строка 129

◆ getLocator()

getLocator ( )

Return the URI without a fragment.

Возвращает
string

См. определение в файле uri.php строка 65

◆ getPass()

getPass ( )

Returns the rawurlencoded password.

Возвращает
string

См. определение в файле uri.php строка 149

◆ getPath()

getPath ( )

См. определение в файле uri.php строка 168

◆ getPathQuery()

getPathQuery ( )

Returns the path with the query. Empty path is treated as a root (/)

Возвращает
string

См. определение в файле uri.php строка 189

◆ getPort()

getPort ( )

См. определение в файле uri.php строка 211

◆ getQuery()

getQuery ( )

См. определение в файле uri.php строка 231

◆ getScheme()

getScheme ( )

См. определение в файле uri.php строка 239

◆ getUri()

getUri ( )

Return the URI with a fragment, if any.

Возвращает
string

Переопределяется в Uri.

См. определение в файле uri.php строка 105

◆ getUrl()

getUrl ( )

См. определение в файле uri.php строка 56

◆ getUser()

getUser ( )

Returns the rawurlencoded user.

Возвращает
string

См. определение в файле uri.php строка 248

◆ getUserInfo()

getUserInfo ( )

См. определение в файле uri.php строка 582

◆ isPathTraversal()

isPathTraversal ( )

Searches for /../ and ulrencoded /../

См. определение в файле uri.php строка 405

◆ jsonSerialize()

jsonSerialize ( )

Specify data which should be serialized to JSON string data which can be serialized by json_encode, which is a value of any type other than a resource. 5.4.0

См. определение в файле uri.php строка 361

◆ parseParams()

parseParams ( $params)
staticprotected

Extended parsing to allow dots and spaces in parameters names.

Аргументы
string$params
Возвращает
array

См. определение в файле uri.php строка 269

◆ resolveRelativeUri()

resolveRelativeUri ( Uri $base)

Converts the relative URI to the absolute one within a context of a base URI.

См. также
https://www.rfc-editor.org/rfc/rfc3986#section-5
Аргументы
Uri$base
Возвращает
$this

См. определение в файле uri.php строка 500

◆ setHost()

setHost ( $host)

Sets the host

Аргументы
string$hostHost name.
Возвращает
$this

См. определение в файле uri.php строка 139

◆ setPass()

setPass ( $pass)

Decodes and sets the password.

Аргументы
string$passPassword,
Возвращает
$this

См. определение в файле uri.php строка 159

◆ setPath()

setPath ( $path)

Sets the path.

Аргументы
string$path
Возвращает
$this

См. определение в файле uri.php строка 179

◆ setUser()

setUser ( $user)

Decodes and sets the user.

Аргументы
string$userUser.
Возвращает
$this

См. определение в файле uri.php строка 258

◆ toAbsolute()

toAbsolute ( string $host = null)

Converts a relative uri to the absolute one using given host name or the host from the current context server object.

Аргументы
string  |  null$host
Возвращает
$this

См. определение в файле uri.php строка 473

◆ urnDecode()

urnDecode ( $str,
$charset = false )
static

Decodes the URI string without parsing it.

Аргументы
$str
$charset
Возвращает
string

См. определение в файле uri.php строка 445

◆ urnEncode()

urnEncode ( $str,
$charset = 'UTF-8' )
static

Encodes the URI string without parsing it.

Аргументы
$str
$charset
Возвращает
string

См. определение в файле uri.php строка 416

◆ withFragment()

withFragment ( string $fragment)

См. определение в файле uri.php строка 667

◆ withHost()

withHost ( string $host)

См. определение в файле uri.php строка 623

◆ withPath()

withPath ( string $path)

См. определение в файле uri.php строка 645

◆ withPort()

withPort ( ?int $port)

См. определение в файле uri.php строка 634

◆ withQuery()

withQuery ( string $query)

См. определение в файле uri.php строка 656

◆ withScheme()

withScheme ( string $scheme)

См. определение в файле uri.php строка 598

◆ withUserInfo()

withUserInfo ( string $user,
?string $password = null )

См. определение в файле uri.php строка 609

Поля

◆ $fragment

$fragment = ''
protected

См. определение в файле uri.php строка 25

◆ $host

$host = ''
protected

См. определение в файле uri.php строка 19

◆ $pass

$pass = ''
protected

См. определение в файле uri.php строка 22

◆ $path

$path = ''
protected

См. определение в файле uri.php строка 23

◆ $port

$port = null
protected

См. определение в файле uri.php строка 20

◆ $query

$query = ''
protected

См. определение в файле uri.php строка 24

◆ $scheme

$scheme = ''
protected

См. определение в файле uri.php строка 18

◆ $user

$user = ''
protected

См. определение в файле uri.php строка 21


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/main/lib/web/uri.php