Jelix 1.6.37

significantUrlEngine
in package
implements jIUrlEngine

an url engine to parse,analyse and create significant url it needs an urls.xml file in the config directory (see documentation)

Tags
subpackage

urls_engine

author

Laurent Jouanneau

copyright

2005-2011 Laurent Jouanneau

Interfaces, Classes and Traits

jIUrlEngine
interface for url engines

Table of Contents

$dataCreateUrl  : array<string|int, mixed>
data to create significant url
$dataParseUrl  : array<string|int, mixed>
data to parse and anaylise significant url, and to determine action, module etc.
parse()  : jUrlAction
Parse some url components
parseFromRequest()  : jUrlAction
Parse a url from the request
_parse()  : jUrlAction

Properties

$dataCreateUrl

data to create significant url

protected array<string|int, mixed> $dataCreateUrl = ull

$dataParseUrl

data to parse and anaylise significant url, and to determine action, module etc.

protected array<string|int, mixed> $dataParseUrl = ull

.

Methods

parse()

Parse some url components

public parse(string $scriptNamePath, string $pathinfo, array<string|int, mixed> $params) : jUrlAction
Parameters
$scriptNamePath : string

/path/index.php

$pathinfo : string

the path info part of the url (part between script name and query)

$params : array<string|int, mixed>

url parameters (query part e.g. $_REQUEST)

Return values
jUrlAction

parseFromRequest()

Parse a url from the request

public parseFromRequest(jRequest $request, array<string|int, mixed> $params) : jUrlAction
Parameters
$request : jRequest
$params : array<string|int, mixed>

url parameters

Tags
since
1.1
Return values
jUrlAction

_parse()

protected _parse(string $scriptNamePath, string $pathinfo, array<string|int, mixed> $params, bool $isHttps) : jUrlAction
Parameters
$scriptNamePath : string

/path/index.php

$pathinfo : string

the path info part of the url (part between script name and query)

$params : array<string|int, mixed>

url parameters (query part e.g. $_REQUEST)

$isHttps : bool

says if the given url is asked with https or not

Return values
jUrlAction

Search results