|
Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
|
Public Member Functions | |
| filter (&$uri, $config, $context) | |
| Filter a URI object. | |
| prepare ($config) | |
| Performs initialization for the filter. | |
Public Attributes | |
| $always_load = false | |
| True if this filter should always be loaded. | |
| $name | |
| Unique identifier of filter. | |
| $post = false | |
| True if this filter should be run after scheme validation. | |
|
abstract |
Filter a URI object.
| HTMLPurifier_URI | $uri | Reference to URI object variable |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context |
| bool | Whether or not to continue processing: false indicates URL is no good, true indicates continue processing. Note that all changes are committed directly on the URI object |
Reimplemented in HTMLPurifier_URIFilter_DisableExternal, HTMLPurifier_URIFilter_DisableExternalResources, HTMLPurifier_URIFilter_DisableResources, HTMLPurifier_URIFilter_HostBlacklist, HTMLPurifier_URIFilter_MakeAbsolute, HTMLPurifier_URIFilter_Munge, and HTMLPurifier_URIFilter_SafeIframe.
| HTMLPurifier_URIFilter::prepare | ( | $config | ) |
Performs initialization for the filter.
If the filter returns false, this means that it shouldn't be considered active.
| HTMLPurifier_Config | $config |
| bool |
Reimplemented in HTMLPurifier_URIFilter_DisableExternal, HTMLPurifier_URIFilter_HostBlacklist, HTMLPurifier_URIFilter_MakeAbsolute, HTMLPurifier_URIFilter_Munge, and HTMLPurifier_URIFilter_SafeIframe.
| HTMLPurifier_URIFilter::$always_load = false |
True if this filter should always be loaded.
This permits a filter to be named Foo without the corresponding URI.Foo directive existing. @type bool
| HTMLPurifier_URIFilter::$name |
Unique identifier of filter.
@type string
| HTMLPurifier_URIFilter::$post = false |
True if this filter should be run after scheme validation.
@type bool