HTMLPurifier_Config::__construct PHP Method

__construct() public method

Constructor
public __construct ( HTMLPurifier_ConfigSchema $definition, HTMLPurifier_PropertyList $parent = null )
$definition HTMLPurifier_ConfigSchema ConfigSchema that defines what directives are allowed.
$parent HTMLPurifier_PropertyList
    public function __construct($definition, $parent = null)
    {
        $parent = $parent ? $parent : $definition->defaultPlist;
        $this->plist = new HTMLPurifier_PropertyList($parent);
        $this->def = $definition;
        // keep a copy around for checking
        $this->parser = new HTMLPurifier_VarParser_Flexible();
    }