Cheetah
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ChWsbPermalinks Class Reference

Public Member Functions

 __construct ()
 
 getInstance ()
 
 cache ()
 
 permalink ($sLink)
 
 _isEnabled ($sLink)
 
 redirectIfNecessary ($aSkip=array())
 

Public Attributes

 $sCacheFile
 
 $aLinks
 

Protected Attributes

 $oDb
 

Detailed Description

Permalinks for any content.

An object of the class allows to check whether permalink is enabled and get it for specified standard URI.

Example of usage:

  1. Register permalink in database by adding necessary info in the sys_permalinks table.
  2. Create an object and process the URI $oPermalinks = new ChWsbPermalinks(); $oPermalinks->permalink('modules/?r=news/');

Memberships/ACL: Doesn't depend on user's membership.

Alerts: no alerts available

Definition at line 32 of file ChWsbPermalinks.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbPermalinks::__construct ( )

Definition at line 38 of file ChWsbPermalinks.php.

Member Function Documentation

◆ _isEnabled()

ChWsbPermalinks::_isEnabled (   $sLink)

Definition at line 126 of file ChWsbPermalinks.php.

◆ cache()

ChWsbPermalinks::cache ( )

Definition at line 59 of file ChWsbPermalinks.php.

◆ getInstance()

ChWsbPermalinks::getInstance ( )

Definition at line 50 of file ChWsbPermalinks.php.

◆ permalink()

ChWsbPermalinks::permalink (   $sLink)

Definition at line 82 of file ChWsbPermalinks.php.

◆ redirectIfNecessary()

ChWsbPermalinks::redirectIfNecessary (   $aSkip = array())

redirect to the correct url after switching skin ot language only correct modules urls are supported

Definition at line 135 of file ChWsbPermalinks.php.

Member Data Documentation

◆ $aLinks

ChWsbPermalinks::$aLinks

Definition at line 35 of file ChWsbPermalinks.php.

◆ $oDb

ChWsbPermalinks::$oDb
protected

Definition at line 36 of file ChWsbPermalinks.php.

◆ $sCacheFile

ChWsbPermalinks::$sCacheFile

Definition at line 34 of file ChWsbPermalinks.php.


The documentation for this class was generated from the following file: