Mod 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)
Self instance
Contenido related parameter array
Url stack array
Database tables array
Array for urls
Language id
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 Sun, 08 Feb 2009 22:00:39 +0100 by phpDocumentor 1.4.1