PHP Class HTMLPurifier_ChildDef_Custom, yii

Inheritance: extends HTMLPurifier_ChildDef
ファイルを表示 Open project: yiisoft/yii

Public Properties

Property Type Description
$allow_empty
$dtd_regex Allowed child pattern as defined by the DTD.
$type

Public Methods

Method Description
__construct ( $dtd_regex )
validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean

Protected Methods

Method Description
_compileRegex ( ) Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)

Method Details

__construct() public method

public __construct ( $dtd_regex )
$dtd_regex Allowed child pattern from the DTD

_compileRegex() protected method

Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)
protected _compileRegex ( )

validateChildren() public method

public validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$children HTMLPurifier_Node[]
$config HTMLPurifier_Config
$context HTMLPurifier_Context
return boolean

Property Details

$allow_empty public_oe property

public $allow_empty

$dtd_regex public_oe property

Allowed child pattern as defined by the DTD.
public $dtd_regex

$type public_oe property

public $type