eZPublish  3.8
eZURLTranslator Class Reference

Translation requested URLs into new URLs internally. More...

Public Member Functions

addURLAlias ($source, $destination, $isInternal=true)
 
 eZURLTranslator ()
 
instance ()
 
translate (&$uri)
 
 translateNodeTree (&$uri)
 

Detailed Description

Translation requested URLs into new URLs internally.

Performs translation on supplied urls, currently only does tree node translation.

Member Function Documentation

& eZURLTranslator::addURLAlias (   $source,
  $destination,
  $isInternal = true 
)

Adds a new URL alias.

eZURLTranslator::eZURLTranslator ( )

Constructor

Referenced by instance().

& eZURLTranslator::instance ( )
Returns
The only instance of the translator.
& eZURLTranslator::translate ( $uri)

Translates the url found in the object $uri and returns the corrected url object.

Returns
false if no url translation was done.
eZURLTranslator::translateNodeTree ( $uri)

Tries to find a node path which matches the uri $uri and returns a new uri string which views that node.

Note
This code should get a separate class/package.

The documentation for this class was generated from the following file: