expRouter

This is the class expRouter

package

Subsystems

subpackage

Subsystems

Methods

__construct

__construct() 

buildCurrentUrl

buildCurrentUrl() 

Get the SEF URL from the server if we got an old school url, it will only contain the 'index.php'

buildSEFPath() 

buildUrlByPageId

buildUrlByPageId( $id = null) 

Arguments

$id

Convert url_parts() or $_REQUEST to $params

convertPartsToParams() : array|string

Response

array|string

convertToOldSchoolUrl

convertToOldSchoolUrl() 

decode

decode( $url) 
static

Arguments

$url

encode

encode( $url) 
static

Arguments

$url

Attempt to locate a page by name or id

getPageByName( $url_name) : null|object|void

Arguments

$url_name

Response

null|object|void

getRouterMaps

getRouterMaps() 

getSection

getSection() 

getSectionObj

getSectionObj( $section) 

Arguments

$section

getSefUrlByPageId

getSefUrlByPageId( $id = null) 

Arguments

$id

getTrackingId

getTrackingId() 

figure out if this action is mapped via the mapping file (router_maps.php)

isMappedURL() 

Returns a cleaner canonical link sans 'src' param

plainPath() : string

Response

string

Check and set up for an action request

routeActionRequest() : boolean

Response

boolean

Set up for page request, but check store category/product also

routePageRequest() : boolean
Throws
\ReflectionException

Response

boolean

routeRequest

routeRequest() 

Assign url_type & url_style

splitURL() 

updateHistory

updateHistory( $section = null) 

Arguments

$section

Properties

maps

maps : 

Type(s)

url_parts

url_parts : 

Type(s)

current_url

current_url : 

Type(s)

Type of url either 'base' (default page), 'page', 'action', or 'malformed'

url_type : string
var

Type(s)

string

Style of url either 'sef' or 'query'

url_style : string
var

Type(s)

string

params

params : 

Type(s)

sefPath

sefPath : 

Type(s)