PHP Class HTMLPurifier_AttrDef_Switch, yii

显示文件 Open project: yiisoft/yii

Protected Properties

Property Type Description
$tag
$withTag
$withoutTag

Public Methods

Method 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 method

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 method

public validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
return boolean | string

Property Details

$tag protected_oe property

protected $tag

$withTag protected_oe property

protected $withTag

$withoutTag protected_oe property

protected $withoutTag