core/model/modx/filters/modinputfilter.class.php
Provides the default input filter implementation for modElement processing.
- Package
- modx
- Subpackage
- filters
\modInputFilter
Package: modx\filters
Base input filter implementation for modElement processing, based on phX.
Properties
Methods
__construct(
\modX $modx
)
:
void
Constructor for modInputFilter
Parameters
Name | Type | Description |
---|---|---|
$modx | \modX | A reference to the modX instance. |
filter(
\modElement $element
)
:
void
Filters a modElement before it is processed.
Parameters
Name | Type | Description |
---|---|---|
$element | \modElement | &$element The element to apply filtering to. |
getCommands(
)
:
array | null
Returns a list of filter input commands to be applied through output filtering.
Returns
Type | Description |
---|---|
array | null | An array of filter commands or null if no commands exist. |
getModifiers(
)
:
array | null
Returns a list of filter input modifiers corresponding to the input commands.
Returns
Type | Description |
---|---|
array | null | An array of filter modifiers for corresponding commands. |