UrlRewrite

UrlRewrite

category

System

package

Shared

Methods

UrlRewrite constructor.

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

Arguments

$contentType

\NonEmptyStringType

$contentId

\IdType

$languageId

\IdType

$rewriteUrl

\NonEmptyStringType

$targetUrl

\NonEmptyStringType

Filters a string allowing the characters a-z, 0-9, - and /.

_sanitizeUrl(\NonEmptyStringType $rewriteUrl) : string

Similar characters are mapped to its latin equivalent.

Arguments

$rewriteUrl

\NonEmptyStringType

Response

string

getContentId

getContentId() : integer

Response

integer

getContentType

getContentType() : string

Response

string

getLanguageId

getLanguageId() : integer

Response

integer

getRewriteUrl

getRewriteUrl() : string

Response

string

getTargetUrl

getTargetUrl() : string

Response

string

Properties

Holds the content type as a string.

contentType : string
var

Type(s)

string

Holds the content ID as integer.

contentId : integer
var

Type(s)

integer

Holds the language ID as integer.

languageId : integer
var

Type(s)

integer

Holds the rewritten URL as string.

rewriteUrl : string
var

Type(s)

string

Holds the original target URL as string.

targetUrl : string
var

Type(s)

string