Class ModRewriteInstaller

Description

Implements interfaces:

Installer for Advanced Mod Rewrite Plugin, used by plugin setup.

Some features are taken over from initial functions.mod_rewrite_setup.php file beeing created by Stefan Seifarth (aka stese).

Located in /contenido/plugins/mod_rewrite/classes/class.modrewriteinstaller.php (line 35)

PluginSetupAbstract
   |
   --ModRewriteInstaller
Method Summary
 void install ()
 void uninstall ()
 void upgrade ()
 void _construct ()
 boolean _inArticles ([string $sName = ''], [integer $iArtId = 0], [integer $iLangId = 0], [integer $iCatId = 0])
 boolean _inCategory ([string $sName = ''], [integer $iCatId = 0], [integer $iLangId = 0])
 boolean _setArticle ([string $sName = ""], [integer $iArtId = 0], [integer $iLangId = 0], [ $iCatId = 0])
 boolean _setCategory ([string $sName = ''], [integer $iCatId = 0], [integer $iLangId = 0])
 string _setCategoryPath ([int $iCatId = 0], [int $iLangId = 0], [int $iLastId = 0])
Variables
Methods
install (line 50)

Installs the plugin, interface function implementation.

Handle upgrading of mod rewrite needed database table columns

  • access: public
void install ()

Implementation of:
IPluginSetup::install()
uninstall (line 107)

Delete plugin, interface function implementation.

Handle deleteting of mod rewrite needed database table columns

  • access: public
void uninstall ()

Implementation of:
IPluginSetup::uninstall()
upgrade (line 97)

Upgrade plugin, interface function implementation.

Handle upgrading of mod rewrite needed database table columns

  • access: public
void upgrade ()

Implementation of:
IPluginSetup::upgrade()
_construct (line 40)

Constructor, initializes parent.

  • access: public
void _construct ()
_inArticles (line 242)

Check articles on websafe name

Check all articles in the current category on existing same websafe name

  • return: true if websafename already exists, false if not
  • access: private
boolean _inArticles ([string $sName = ''], [integer $iArtId = 0], [integer $iLangId = 0], [integer $iCatId = 0])
  • string $sName: Websafe name to check
  • integer $iArtId: current article id
  • integer $iLangId: current language id
  • integer $iCatId: current category id
_inCategory (line 281)

Check categories on websafe name

Check all categories in the main parent category on existing same websafe name

  • return: true if websafename already exists, false if not
  • access: private
boolean _inCategory ([string $sName = ''], [integer $iCatId = 0], [integer $iLangId = 0])
  • string $sName: Websafe name to check
  • integer $iCatId: current category id
  • integer $iLangId: current language id
_setArticle (line 124)

Set websafe name in article list

insert new websafe name in article list

  • return: true if insert was successfully
  • access: private
boolean _setArticle ([string $sName = ""], [integer $iArtId = 0], [integer $iLangId = 0], [ $iCatId = 0])
  • string $sName: original name (will be converted)
  • integer $iArtId: current article id
  • integer $iLangId: current language id
  • $iCatId
_setCategory (line 160)

Set websafe name in category list

insert new websafe name in category list

  • return: true if insert was successfully
  • access: private
boolean _setCategory ([string $sName = ''], [integer $iCatId = 0], [integer $iLangId = 0])
  • string $sName: original name (will be converted)
  • integer $iCatId: current article id
  • integer $iLangId: current language id
_setCategoryPath (line 195)

Build and set recursiv path for mod_rewrite rule like server directories (dir1/dir2/dir3)

  • return: linkpath with correct uri
  • access: private
string _setCategoryPath ([int $iCatId = 0], [int $iLangId = 0], [int $iLastId = 0])
  • int $iCatId: Latest category id
  • int $iLangId: Language id
  • int $iLastId: Last category id

Inherited Methods

Inherited From PluginSetupAbstract

 PluginSetupAbstract::__construct()

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