Methods

Constuctor

__construct($maxItems) 

Parameters

$maxItems

Creates an URL using passed data.

composeURL(array $arr, string $type) 

The result is used to generate seo urls...

Parameters

$arr

array

Assoziative array with some data as follows: $arr['idcat'] $arr['idart'] $arr['idcatart'] $arr['idartlang']

$type

string

Either 'c' or 'a' (category or article). If set to 'c' only the parameter idcat will be added to the URL

Fetchs full structure of the installation (categories and articles) and returns it back.

fetchFullStructure(int $idclient, int $idlang) : array

Parameters

$idclient

int

Client id

$idlang

int

Language id

Returns

arrayFull structure as follows $arr[idcat] = Category dataset $arr[idcat]['articles'][idart] = Article dataset

Creates a readable string from passed resolved data array.

getReadableResolvedData(array $data) : string

Parameters

$data

array

Assoziative array with resolved data

Returns

stringReadable resolved data

Returns resolved URL

getResolvedUrl() : bool

Returns

boolResolved URL

Returns flagz about found routing

getRoutingFoundState() : bool

Returns

bool

Resolves variables of an page (idcat, idart, idclient, idlang, etc.) by processing passed url using ModRewriteController

resolveUrl(string $url) : array

Parameters

$url

string

Url to resolve

Returns

arrayAssoziative array with resolved data

 Properties

 

Global $cfg array

$_aCfg : array

 

Global $cfg['tab'] array

$_aCfgTab : array

 

Routing found flag

$_bRoutingFound : bool

 

Max items to process

$_iMaxItems : int

 

Actual resolved url

$_sResolvedUrl : string