ModRewriteUrlStackMod rewrite url stack class. Provides features to collect urls and to get the pretty path and names of categories/articles at one go.
Main goal of this class is to collect urls and to get the urlpath and urlname of the related categories/articles at one go. This will reduce the queries against the database. Therefore the full advantage will be taken by rewriting the urls at codeoutput in front_content.php, where you will be able to collect all urls at once...
Usage:
Located in /contenido/plugins/mod_rewrite/classes/class.modrewriteurlstack.php (line 47)
static ModRewriteUrlStack
$_instance
(line 54)
Self instance
array
$_aConParams
= array(
Contenido related parameter array
array
$_aStack
= array() (line 75)
Url stack array
array
$_aTab
(line 91)
Database tables array
array
$_aUrls
= array() (line 68)
Array for urls
int
$_idLang
(line 98)
Language id
DB_Contenido
$_oDb
(line 61)
Database object
Returns a instance of ModRewriteUrlStack (singleton implementation)
Constructor, sets some properties.
Adds an url to the stack
Returns the pretty urlparts (only category path an article name) of the desired url.
Main function to get the urlparts of urls.
Composes the query by looping thru stored but non processed urls, executes the query and adds the (urlpath and urlname) result to the stack.
Extracts passed url using parse_urla and adds also the 'params' array to it
Extracts article or category related parameter from passed params array and generates an identifier.
Documentation generated on Tue, 25 Nov 2008 22:07:29 +0100 by phpDocumentor 1.4.1