Phpxforms documentation

UrlRewrite
in package

Simple support class for optional url redirect

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$db  : SQL
$nav  : Navigation

Methods

__construct()  : mixed
findUrl()  : string|null
Find given url in record and return target url
redirect()  : void
Redirect to given url
rewrite()  : string
Format url

Properties

Methods

findUrl()

Find given url in record and return target url

public findUrl(string $url) : string|null
Parameters
$url : string
Return values
string|null

redirect()

Redirect to given url

public redirect(string $url[, bool $permanent = true ]) : void
Parameters
$url : string
$permanent : bool = true

rewrite()

Format url

protected rewrite(array<string, mixed> $item[, string $url = '' ]) : string
Parameters
$item : array<string, mixed>
$url : string = ''
Return values
string

        
On this page

Search results