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 50)
static ModRewriteUrlStack
$_instance
(line 57)
Self instance
array
$_aConParams
= array(
Contenido related parameter array
array
$_aStack
= array() (line 78)
Url stack array
array
$_aTab
(line 94)
Database tables array
array
$_aUrls
= array() (line 71)
Array for urls
int
$_idLang
(line 101)
Language id
DB_Contenido
$_oDb
(line 64)
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 Wed, 24 Dec 2008 21:44:04 +0100 by phpDocumentor 1.4.1