UrlRewrite
in package
UrlRewrite
Tags
Table of Contents
- $contentId : int
- Holds the content ID as integer.
- $contentType : string
- Holds the content type as a string.
- $languageId : int
- Holds the language ID as integer.
- $rewriteUrl : string
- Holds the rewritten URL as string.
- $targetUrl : string
- Holds the original target URL as string.
- __construct() : mixed
- UrlRewrite constructor.
- getContentId() : int
- getContentType() : string
- getLanguageId() : int
- getRewriteUrl() : string
- getTargetUrl() : string
- _sanitizeUrl() : string
- Filters a string allowing the characters a-z, 0-9, - and /.
Properties
$contentId
Holds the content ID as integer.
protected
int
$contentId
$contentType
Holds the content type as a string.
protected
string
$contentType
$languageId
Holds the language ID as integer.
protected
int
$languageId
$rewriteUrl
Holds the rewritten URL as string.
protected
string
$rewriteUrl
$targetUrl
Holds the original target URL as string.
protected
string
$targetUrl
Methods
__construct()
UrlRewrite constructor.
public
__construct(NonEmptyStringType $contentType, IdType $contentId, IdType $languageId, NonEmptyStringType $rewriteUrl, NonEmptyStringType $targetUrl) : mixed
Parameters
- $contentType : NonEmptyStringType
- $contentId : IdType
- $languageId : IdType
- $rewriteUrl : NonEmptyStringType
- $targetUrl : NonEmptyStringType
Return values
mixed —getContentId()
public
getContentId() : int
Return values
int —getContentType()
public
getContentType() : string
Return values
string —getLanguageId()
public
getLanguageId() : int
Return values
int —getRewriteUrl()
public
getRewriteUrl() : string
Return values
string —getTargetUrl()
public
getTargetUrl() : string
Return values
string —_sanitizeUrl()
Filters a string allowing the characters a-z, 0-9, - and /.
protected
_sanitizeUrl(NonEmptyStringType $rewriteUrl) : string
Similar characters are mapped to its latin equivalent.
Parameters
- $rewriteUrl : NonEmptyStringType