PHP Class HTMLPurifier_AttrDef_Switch, yii

Afficher le fichier Open project: yiisoft/yii

Protected Properties

Свойство Type Description
$tag
$withTag
$withoutTag

Méthodes publiques

Méthode Description
__construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag )
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

Method Details

__construct() public méthode

public __construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag )
$tag string Tag name to switch upon
$with_tag HTMLPurifier_AttrDef Call if token matches tag
$without_tag HTMLPurifier_AttrDef Call if token doesn't match, or there is no token

validate() public méthode

public validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Résultat boolean | string

Property Details

$tag protected_oe property

protected $tag

$withTag protected_oe property

protected $withTag

$withoutTag protected_oe property

protected $withoutTag