Mod rewrite test class.

author Murat Purc
package plugin
subpackage Mod Rewrite

 Methods

Constuctor

__construct(int $maxItems) 

Parameters

$maxItems

int

Max items (urls to articles/categories) to process

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

 

$_aCfg : array
 

$_aCfgTab : array
 

$_bRoutingFound : bool
 

$_iMaxItems : int
 

$_sResolvedUrl : string