Class ModRewriteUrlUtil

Description

Mod Rewrite url utility class. Handles convertion of Urls from contenido core based url composition pattern to AMR (Advanced Mod Rewrite) url composition pattern and vice versa.

Located in /contenido/plugins/mod_rewrite/classes/class.modrewriteurlutil.php (line 27)

ModRewriteBase
   |
   --ModRewriteUrlUtil
Variable Summary
 string $_artSep
 string $_artWordSep
 string $_catSep
 string $_catWordSep
 string $_mrArtSep
 string $_mrCatSep
 string $_mrExt
Method Summary
 ModRewriteUrlUtil __construct ()
 string toContenidoUrl (string $url)
 string toContenidoUrlName (string $urlName)
 string toContenidoUrlPath (string $urlPath)
 string toModRewriteUrl (string $url)
 string toModRewriteUrlName (string $urlName)
 string toModRewriteUrlPath (string $urlPath)
 string _toUrl ( $url, string $fromCatSep, string $toCatSep, string $fromCatWordSep, string $toCatWordSep, string $fromArtSep, string $toArtSep, string $fromArtWordSep, string $toArtWordSep, string $urlPath)
 string _toUrlName (string $urlName, string $fromArtWordSep, string $toArtWordSep)
 string _toUrlPath (string $urlPath, string $fromCatSep, string $toCatSep, string $fromCatWordSep, string $toCatWordSep, string $fromArtSep, string $toArtSep)
Variables
static ModRewriteUrlUtil $_instance (line 33)

Self instance (singleton implementation)

  • access: private
string $_artSep = '/' (line 63)

Contenido article separator

  • access: private
string $_artWordSep = '-' (line 75)

Contenido article word separator

  • access: private
string $_catSep = '/' (line 51)

Contenido category separator

  • access: private
string $_catWordSep = '-' (line 39)

Contenido category word separator

  • access: private
string $_mrArtSep (line 69)

AMR article separator

  • access: private
string $_mrArtWordSep (line 81)

AMR article word separator

  • access: private
string $_mrCatSep (line 57)

AMR category separator

  • access: private
string $_mrCatWordSep (line 45)

AMR category word separator

  • access: private
string $_mrExt (line 87)

AMR extension used for articlenames (e. g. .html)

  • access: private

Inherited Variables

Inherited from ModRewriteBase

ModRewriteBase::$_oDebug
ModRewriteBase::$_oGlobals
Methods
static getInstance (line 109)

Returns self instance (singleton pattern)

  • access: public
ModRewriteUrlUtil getInstance ()
Constructor __construct (line 93)

Contructor, sets some AMR configuration related properties

  • access: private
ModRewriteUrlUtil __construct ()
toContenidoUrl (line 240)

Converts passed AMR url to Contenido url.

  • return: Contenido url
  • access: public
string toContenidoUrl (string $url)
  • string $url: AMR url
toContenidoUrlName (line 190)

Converts passed AMR url name to Contenido url name.

  • return: Contenido url name
  • access: public
string toContenidoUrlName (string $urlName)
  • string $urlName: AMR url name
toContenidoUrlPath (line 123)

Converts passed AMR url path to Contenido url path.

  • return: Contenido url path
  • access: public
string toContenidoUrlPath (string $urlPath)
  • string $urlPath: AMR url path
toModRewriteUrl (line 259)

Converts passed AMR url to Contenido url.

  • return: Contenido url
  • access: public
string toModRewriteUrl (string $url)
  • string $url: AMR url
toModRewriteUrlName (line 202)

Converts passed Contenido url name to AMR url name.

  • return: AMR url name
  • access: public
string toModRewriteUrlName (string $urlName)
  • string $urlName: Contenido url name
toModRewriteUrlPath (line 138)

Converts passed Contenido url path to AMR url path.

  • return: AMR url path
  • access: public
string toModRewriteUrlPath (string $urlPath)
  • string $urlPath: Contenido url path
_toUrl (line 286)

Converts passed url to a another url (Contenido to AMR and vice versa).

  • return: Destination url
  • access: private
string _toUrl ( $url, string $fromCatSep, string $toCatSep, string $fromCatWordSep, string $toCatWordSep, string $fromArtSep, string $toArtSep, string $fromArtWordSep, string $toArtWordSep, string $urlPath)
  • string $urlPath: Source url path
  • string $fromCatSep: Source category seperator
  • string $toCatSep: Destination category seperator
  • string $fromCatWordSep: Source category word seperator
  • string $toCatWordSep: Destination category word seperator
  • string $fromArtSep: Source article seperator
  • string $toArtSep: Destination article seperator
  • string $fromArtWordSep: Source article word seperator
  • string $toArtWordSep: Destination article word seperator
  • $url
_toUrlName (line 216)

Converts passed url name to a another url name (Contenido to AMR and vice versa).

  • return: Destination url name
  • access: private
string _toUrlName (string $urlName, string $fromArtWordSep, string $toArtWordSep)
  • string $urlName: Source url name
  • string $fromArtWordSep: Source article word seperator
  • string $toArtWordSep: Destination article word seperator
_toUrlPath (line 160)

Converts passed url path to a another url path (Contenido to AMR and vice versa).

  • return: Destination url path
  • access: private
string _toUrlPath (string $urlPath, string $fromCatSep, string $toCatSep, string $fromCatWordSep, string $toCatWordSep, string $fromArtSep, string $toArtSep)
  • string $urlPath: Source url path
  • string $fromCatSep: Source category seperator
  • string $toCatSep: Destination category seperator
  • string $fromCatWordSep: Source category word seperator
  • string $toCatWordSep: Destination category word seperator
  • string $fromArtSep: Source article seperator
  • string $toArtSep: Destination article seperator

Inherited Methods

Inherited From ModRewriteBase

 ModRewriteBase::getConfig()
 ModRewriteBase::initialize()
 ModRewriteBase::isEnabled()

Documentation generated on Tue, 25 Nov 2008 22:07:30 +0100 by phpDocumentor 1.4.1