Class ModRewriteController

Description

Mod Rewrite controller class. Extracts url parts and sets some necessary globals like:

  • $idart
  • $idcat
  • $client
  • $changeclient
  • $lang
  • $changelang

Located in /classes/class.modrewritecontroller.php (line 26)


	
			
Variable Summary
 array $_aCfg
 array $_aCfgMR
 array $_aParts
 bool $_bError
 string $_sArtName
 string $_sPath
Method Summary
 ModRewriteController ModRewriteController ()
 bool errorOccured ()
 void execute ()
 int getChangeLang ()
 int getClient ()
 int getIdArt ()
 int getIdCat ()
 int getLang ()
 string getPath ()
 void _extractRequestUri ([ $secondCall = false])
 void _overrideConfig ()
 void _setClientId ()
 void _setIdart ()
 void _setLanguageId ()
Variables
array $_aCfg (line 33)

Contenido configuration array (see $GLOBALS['cfg'])

array $_aCfgMR (line 40)

Mod Rewrite configuration array (see $GLOBALS['cfg']['mod_rewrite'])

array $_aParts (line 47)

Extracted request uri path parts by path separator '/'

bool $_bError = false (line 75)

Flag about occured errors

int $_iClientMR (line 68)

Client id used by this class

string $_sArtName (line 54)

Extracted article name from request uri

string $_sPath (line 61)

Remaining path for path resolver (see $GLOBALS['path'])

Methods
Constructor ModRewriteController (line 81)

Constructor, sets several properties.

ModRewriteController ModRewriteController ()
errorOccured (line 163)

Getter for occured error state

  • return: Flag for occured error
bool errorOccured ()
execute (line 174)

Main function to call for mod rewrite related preprocessing jobs.

Executes some private functions to extract request uri and to set needed membervariables (client, language, article id, category id, etc.)

void execute ()
getChangeClient (line 103)

Getter for overwritten change client id (see $GLOBALS['changeclient'])

  • return: Change client id
int getChangeClient ()
getChangeLang (line 143)

Getter for change language id (see $GLOBALS['change_lang'])

  • return: Change language id
int getChangeLang ()
getClient (line 93)

Getter for overwritten client id (see $GLOBALS['client'])

  • return: Client id
int getClient ()
getIdArt (line 113)

Getter for article id (see $GLOBALS['idart'])

  • return: Article id
int getIdArt ()
getIdCat (line 123)

Getter for category id (see $GLOBALS['idcat'])

  • return: Category id
int getIdCat ()
getLang (line 133)

Getter for language id (see $GLOBALS['lang'])

  • return: Language id
int getLang ()
getPath (line 153)

Getter for path (see $GLOBALS['path'])

  • return: Path, used by path resolver
string getPath ()
_extractRequestUri (line 210)

Extracts request uri and sets member variables $this->_sArtName and $this->_aParts

  • access: private
void _extractRequestUri ([ $secondCall = false])
  • $secondCall
_hasPartArrayItems (line 457)

Returns state of parts property

  • return: True if $this->_aParts propery is an array and contains items
  • access: private
bool _hasPartArrayItems ()
_overrideConfig (line 282)

Overrides local mod rewrite cfg settings with client settings from database

  • access: private
void _overrideConfig ()
_preprocessVariables (line 310)

Preprocesses article name and parts list, sets article name and parts list if settings for usage of categories as a html file is active and valid.

  • access: private
void _preprocessVariables ()
_setClientId (line 327)

Sets client id

  • access: private
void _setClientId ()
_setIdart (line 431)

Sets article id

  • access: private
void _setIdart ()
_setLanguageId (line 357)

Sets language id

  • access: private
void _setLanguageId ()
_setPathresolverSetting (line 383)

Sets path resolver and category id

  • access: private
void _setPathresolverSetting ()

Documentation generated on Mon, 19 May 2008 22:46:57 +0200 by phpDocumentor 1.4.0