Class

eZURLAliasFilterAppendNodeID

class eZURLAliasFilterAppendNodeID extends eZURLAliasFilter

This class is an URL alias filter to be run with the eZURLAliasFilter system

It appends the value of the nodeID in the URL so the contents can be for example indexed by Google for its Google News

Methods

string process(string $text, object $languageObject, object $caller)

Append the node ID of the object being published So its URL alias will look like : someurlalias-

static string processFilters($text, $languageObject, $caller)

Process all configured filters and return the resulting text.

from eZURLAliasFilter
__construct()

Empty constructor

Details

at line 34
public string process(string $text, object $languageObject, object $caller)

Append the node ID of the object being published So its URL alias will look like : someurlalias-

Parameters

string $text The text of the URL alias
object $languageObject The eZContentObject object being published
object $caller The eZContentObjectTreeNode in which the eZContentObject is published

Return Value

string The transformed URL alias with the nodeID

in eZURLAliasFilter at line 59
static public string processFilters($text, $languageObject, $caller)

Process all configured filters and return the resulting text.

Filters are found in the INI group URLTranslator and the setting FilterClasses.

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.

Parameters

$text
$languageObject
$caller

Return Value

string the URL alias processed by the process() method

at line 22
public __construct()

Empty constructor