PHP Class HTMLPurifier_URIFilter, yii

These filters can perform custom actions on a URI filter object, including transformation or blacklisting.
Afficher le fichier Open project: yiisoft/yii

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Method Details

filter() abstract public méthode

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
Résultat 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() public méthode

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
Résultat boolean

Property Details

$always_load public_oe property

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

$name public_oe property

Unique identifier of filter.
public $name

$post public_oe property

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