PHP Класс HTMLPurifier_URIFilter, yii

These filters can perform custom actions on a URI filter object, including transformation or blacklisting.
Показать файл Открыть проект

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

Свойство Тип Описание
$always_load This permits a filter to be named Foo without the corresponding %URI.Foo directive existing.
$name Unique identifier of filter.
$post True if this filter should be run after scheme validation.

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

Метод Описание
filter ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Filter a URI object
prepare ( HTMLPurifier_Config $config ) : boolean Performs initialization for the filter. If the filter returns false, this means that it shouldn't be considered active.

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

filter() абстрактный публичный Метод

Filter a URI object
abstract public filter ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$uri HTMLPurifier_URI Reference to URI object variable
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Результат boolean Whether or not to continue processing: false indicates URL is no good, true indicates continue processing. Note that all changes are committed directly on the URI object

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

Performs initialization for the filter. If the filter returns false, this means that it shouldn't be considered active.
public prepare ( HTMLPurifier_Config $config ) : boolean
$config HTMLPurifier_Config
Результат boolean

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

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

This permits a filter to be named Foo without the corresponding %URI.Foo directive existing.
public $always_load

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

Unique identifier of filter.
public $name

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

True if this filter should be run after scheme validation.
public $post