Redirector
in package
Table of Contents
- $_wpEstateDetailUrl : EstateDetailUrl
- $_wpRedirectWrapper : WPRedirectWrapper
- __construct() : mixed
- checkNewUrlIsValid() : bool
- checkUrlIsMatchRule() : mixed
- getCurrentLink() : string
- getUri() : mixed
- redirectDetailView() : bool|void
Properties
$_wpEstateDetailUrl
private
EstateDetailUrl
$_wpEstateDetailUrl
$_wpRedirectWrapper
private
WPRedirectWrapper
$_wpRedirectWrapper
Methods
__construct()
public
__construct(EstateDetailUrl $estateDetailUrl, WPRedirectWrapper $redirectWrapper) : mixed
Parameters
- $estateDetailUrl : EstateDetailUrl
- $redirectWrapper : WPRedirectWrapper
Return values
mixed —checkNewUrlIsValid()
public
checkNewUrlIsValid(array<string|int, mixed> $newUrlArr, array<string|int, mixed> $oldUrlArr) : bool
Parameters
- $newUrlArr : array<string|int, mixed>
- $oldUrlArr : array<string|int, mixed>
Return values
bool —checkUrlIsMatchRule()
public
checkUrlIsMatchRule() : mixed
Return values
mixed —getCurrentLink()
public
getCurrentLink() : string
Return values
string —getUri()
public
getUri() : mixed
Return values
mixed —redirectDetailView()
public
redirectDetailView( $estateId, $estateTitle) : bool|void