Class UrlRewrite

UrlRewrite

Package: Shared
Category: System
Located at Shared/UrlRewrite.inc.php

Methods summary

public __construct( NonEmptyStringType $contentType, IdType $contentId, IdType $languageId, NonEmptyStringType $rewriteUrl, NonEmptyStringType $targetUrl )

UrlRewrite constructor.

public getContentType( void ) : string
public getContentId( void ) : integer
public getLanguageId( void ) : integer
public getRewriteUrl( void ) : string
public getTargetUrl( void ) : string
protected _sanitizeUrl( NonEmptyStringType $rewriteUrl ) : string

Filters a string allowing the characters a-z, 0-9, - and /. Similar characters are mapped to its latin equivalent.

Properties summary

protected $contentType : string

Holds the content type as a string.


		
protected $contentId : integer

Holds the content ID as integer.


		
protected $languageId : integer

Holds the language ID as integer.


		
protected $rewriteUrl : string

Holds the rewritten URL as string.


		
protected $targetUrl : string

Holds the original target URL as string.