39 $this->registeredFilters[$filter->name] = $filter;
45 if (
$r ===
false)
return;
47 $this->postFilters[$filter->name] = $filter;
49 $this->filters[$filter->name] = $filter;
61 foreach ($this->registeredFilters as $name => $filter) {
62 if ($filter->always_load) {
65 $conf =
$config->get(
'URI.' . $name);
66 if ($conf !==
false && $conf !== null) {
71 unset($this->registeredFilters);
76 $this->host =
$config->get(
'URI.Host');
77 $base_uri =
$config->get(
'URI.Base');
78 if (!is_null($base_uri)) {
81 $this->defaultScheme = $this->
base->scheme;
82 if (is_null($this->host)) $this->host = $this->
base->host;
84 if (is_null($this->defaultScheme)) $this->defaultScheme =
$config->get(
'URI.DefaultScheme');
94 foreach ($this->filters as $name => $f) {
103 foreach ($this->postFilters as $name => $f) {
getDefaultScheme($config, $context)
Super-class for definition datatype objects, implements serialization functions for the class...
setupMemberVariables($config)
$defaultScheme
Name of default scheme based on URI.DefaultScheme and URI.Base.
Implements safety checks for safe iframes.
Create styles array
The data for the language used.
static instance($prototype=null)
Retrieve sole instance of the registry.
filter(&$uri, $config, $context)
addFilter($filter, $config)
Parses a URI into the components and fragment identifier as specified by RFC 3986.
$host
String host to consider "home" base, derived off of $base.
postFilter(&$uri, $config, $context)
$base
HTMLPurifier_URI object of the base specified at URI.Base.