|
eZ Publish
[4.2]
|
Handles filtering of URL aliases. More...
Public Member Functions | |
| eZURLAliasFilter () | |
| Initialize the filter object. | |
| process ($text, &$languageObject, &$caller) | |
Static Public Member Functions | |
| static | processFilters ($text, $languageObject, $caller) |
Handles filtering of URL aliases.
This class defines the interface for all url alias filters, the filter implementation must implement the process method.
For execution of the configured filters use the static method processFilters. Help with configuration is found in settings/site.ini under the group URLTranslator.
Definition at line 44 of file ezurlaliasfilter.php.
| eZURLAliasFilter::eZURLAliasFilter | ( | ) |
Initialize the filter object.
Definition at line 49 of file ezurlaliasfilter.php.
| eZURLAliasFilter::process | ( | $ | text, |
| &$ | languageObject, | ||
| &$ | caller | ||
| ) |
Process the url alias element $text and return the new element as a string.
| $languageObject | The current language object used for the string $text. |
| $caller | The object which called the filtering process, can be null. |
Definition at line 60 of file ezurlaliasfilter.php.
| static eZURLAliasFilter::processFilters | ( | $ | text, |
| $ | languageObject, | ||
| $ | caller | ||
| ) | [static] |
Process all configured filters and return the resulting text.
Filters are found in the INI group URLTranslator and the setting Filters. This is done in combination with the setting Extensions which controls which extensions have filter classes.
The parameters $text, $languageObject and $caller are sent to the method process on the filter object.
Note: The filter list will be cached in memory to improve performance of subsequent calls.
Definition at line 78 of file ezurlaliasfilter.php.
Referenced by eZContentObjectTreeNode\updateSubTreePath().