Class ModRewriteTest

Description

Advanced Mod Rewrite test class.

  • author: Murat Purc <murat@purc.de>
  • copyright: © Murat Purc 2008

Located in /cms/mr_test.php (line 444)


	
			
Variable Summary
 array $cfg
 array $cfgTab
 int $maxItems
 string $sResolvedUrl
Method Summary
 ModRewriteTest __construct ()
 void composeURL (array $arr, string $type)
 array fetchFullStructure ([int $idclient = null], [int $idlang = null])
 string getReadableResolvedData ( $data)
 bool getResolvedUrl ()
 array resolveUrl (string $url)
Variables
bool $bRoutingFound = false (line 471)
  • var: Routing found flag
  • access: private
array $cfg (line 449)
  • var: Global $cfg array
  • access: private
array $cfgTab (line 454)
  • var: Global $cfg['tab'] array
  • access: private
int $maxItems (line 460)
  • var: Max items to process
  • access: private
string $sResolvedUrl (line 465)
  • var: Actual resolved url
  • access: private
Methods
Constructor __construct (line 477)

Constuctor

ModRewriteTest __construct ()
composeURL (line 612)

Creates an URL using passed data.

The result is used to generate seo urls...

void composeURL (array $arr, string $type)
  • array $arr: Assoziative array with some data as follows:
    1.  $arr['idcat']
    2.  $arr['idart']
    3.  $arr['idcatart']
    4.  $arr['idartlang']
  • string $type: Either 'c' or 'a' (category or article). If set to 'c' only the parameter idcat will be added to the URL
fetchFullStructure (line 515)

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

  • return: Full structure as follows
    1.    $arr[idcatCategory dataset
    2.    $arr[idcat]['articles'][idartArticle dataset
array fetchFullStructure ([int $idclient = null], [int $idlang = null])
  • int $idclient: Client id
  • int $idlang: Language id
getReadableResolvedData (line 717)

Creates a readable string from passed resolved data array.

  • return: Readable resolved data
  • access: public
string getReadableResolvedData ( $data)
  • array $data: Assoziative array with resolved data
getResolvedUrl (line 489)

Returns resolved URL

  • return: Resolved URL
bool getResolvedUrl ()
getRoutingFoundState (line 499)

Returns flagz about found routing

bool getRoutingFoundState ()
resolveUrl (line 646)

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

  • return: Assoziative array with resolved data
  • access: public
array resolveUrl (string $url)
  • string $url: Url to resolve

Documentation generated on Tue, 25 Nov 2008 22:07:52 +0100 by phpDocumentor 1.4.1