basic_significantUrlEngine
extends simpleUrlEngine
in package
basic significant url engine generated url are like module/controller/action and others parameters are in the query
Tags
Table of Contents
- $urlhttps : mixed
- $urlspe : mixed
- __construct() : 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
__construct()
public
__construct() : mixed
Return values
mixed —create()
Create a jurl object with the given action data
public
create(mixed $urlact) : jUrl
Parameters
- $urlact : mixed
-
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