PHP Класс yii\httpclient\UrlEncodedFormatter

С версии: 2.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\base\Object, implements yii\httpclient\FormatterInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$charset the content charset. If not set, it will use the value of [[\yii\base\Application::charset]].
$encodingType URL encoding type. Possible values are: - PHP_QUERY_RFC1738 - encoding is performed per 'RFC 1738' and the 'application/x-www-form-urlencoded' media type, which implies that spaces are encoded as plus (+) signs. This is most common encoding type used by most web applications. - PHP_QUERY_RFC3986 - then encoding is performed according to 'RFC 3986', and spaces will be percent encoded (%20). This encoding type is required by OpenID and OAuth protocols.

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

Метод Описание
format ( Request $request )

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

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

public format ( Request $request )
$request Request

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

$charset публичное свойство

the content charset. If not set, it will use the value of [[\yii\base\Application::charset]].
С версии: 2.0.1
public $charset

$encodingType публичное свойство

URL encoding type. Possible values are: - PHP_QUERY_RFC1738 - encoding is performed per 'RFC 1738' and the 'application/x-www-form-urlencoded' media type, which implies that spaces are encoded as plus (+) signs. This is most common encoding type used by most web applications. - PHP_QUERY_RFC3986 - then encoding is performed according to 'RFC 3986', and spaces will be percent encoded (%20). This encoding type is required by OpenID and OAuth protocols.
public $encodingType