PHP Класс HTMLPurifier_PercentEncoder, yii

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

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

Свойство Тип Описание
$preserve Reserved characters to preserve when using encode().

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

Метод Описание
__construct ( boolean $preserve = false ) String of characters that should be preserved while using encode().
encode ( string $string ) : string Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
normalize ( string $string ) : string Fix up percent-encoding by decoding unreserved characters and normalizing.

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

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

String of characters that should be preserved while using encode().
public __construct ( boolean $preserve = false )
$preserve boolean

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

Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
public encode ( string $string ) : string
$string string String to be encoded
Результат string Encoded string.

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

Fix up percent-encoding by decoding unreserved characters and normalizing.
public normalize ( string $string ) : string
$string string String to normalize
Результат string

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

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

Reserved characters to preserve when using encode().
protected $preserve