ZenphotoCMS 1.6.2

redirector

redirection handler class

Table of Contents

Methods

handleRequest()  : string
Checks the current URL request with the catalogue and if found returns the new URL to redirect to.
loadRedirections()  : array<string|int, mixed>
Loads the catalogue of old to new redirection URLs selected on the options

Methods

handleRequest()

Checks the current URL request with the catalogue and if found returns the new URL to redirect to.

public static handleRequest(string $request) : string
Parameters
$request : string

The URL request passed by the filter hook in controller.php

Return values
string

The URL to redirect to or the original request URL

loadRedirections()

Loads the catalogue of old to new redirection URLs selected on the options

public static loadRedirections() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results