simpleUrlEngine
in package
implements
jIUrlEngine
simple url engine generated url are "dirty" jelix url, with full of parameter in the query (module, action etc..)
Tags
Interfaces, Classes and Traits
- jIUrlEngine
- interface for url engines
Table of Contents
- $urlhttps : mixed
- $urlspe : mixed
- create() : jUrl
- Create a jurl object with the given action data
- parse() : jUrlAction
- Parse some url components
- parseFromRequest() : jUrlAction
- Parse a url from the request
- getBasePath() : string
- Read the configuration and return an url part according of the of the https configuration
- getScript() : string
- Read the configuration and gets the script path corresponding to the given parameters
Properties
$urlhttps
protected
mixed
$urlhttps
=
ull
$urlspe
protected
mixed
$urlspe
=
ull
Methods
create()
Create a jurl object with the given action data
public
create(jUrlAction $urlact) : jUrl
Parameters
- $urlact : jUrlAction
-
information about the action
Return values
jUrl —the url correspondant to the action
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
Return values
jUrlAction —getBasePath()
Read the configuration and return an url part according of the of the https configuration
protected
getBasePath(string $requestType[, string $module = null ][, string $action = null ]) : string
Parameters
- $requestType : string
- $module : string = null
- $action : string = null
Return values
string —the url base path
getScript()
Read the configuration and gets the script path corresponding to the given parameters
protected
getScript(string $requestType[, string $module = null ][, string $action = null ]) : string
Parameters
- $requestType : string
- $module : string = null
- $action : string = null
Return values
string —the script path