|
| cacheInvalidate () |
|
| __clone () |
|
| getPermalinksData () |
|
| getPageNameFromLink ($sLink, $iLength=false) |
|
| permalink ($sLink, $aParams=array()) |
|
| unpermalink ($sLink, $isStripBaseUrl=true) |
|
| _isEnabled ($sLink) |
|
| redirectIfNecessary ($aSkip=array()) |
|
| setReadOnlyMode ($b) |
|
| connect () |
|
| disconnect () |
|
| ping () |
|
| pdoExec ($sQuery) |
|
| pdoQuery ($sQuery) |
|
| pdoExceptionHandler ($oException) |
|
| getOption ($sName) |
|
| getOne ($oStatement, $aBindings=array(), $iIndex=0) |
|
| getRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| getColumn ($oStatement, $aBindings=array(), $iFetchColumnNumber=0) |
|
| getFirstRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| getNextRow ($iFetchType=PDO::FETCH_ASSOC) |
|
| getAll ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| fillArray ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| getAllWithKey ($oStatement, $sFieldKey, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| getPairs ($oStatement, $sFieldKey, $sFieldValue, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) |
|
| getNumRows ($oStatement=null) |
|
| getAffectedRows ($oStatement=null) |
|
| lastId () |
|
| query ($oStatement, $aBindings=array(), $bVerbose=null) |
|
| res ($oStatement, $aBindings=array(), $bVerbose=null) |
|
| getServerInfo () |
|
| getVersion () |
|
| listTables () |
|
| getFields ($sTable) |
|
| fetchField ($oStatement, $iField, $aBindings=array()) |
|
| isTableExists ($sTable) |
|
| isFieldExists ($sTable, $sFieldName) |
|
| isIndexExists ($sTable, $sIndexName) |
|
| error ($aError) |
|
| cacheParams ($bForceCacheInvalidate=false, $bForceCacheInvalidateMixed=false) |
|
| cacheParamsClear ($sCacheName='') |
|
| isParam ($sKey, $bFromCache=true) |
|
| addParam ($sName, $sValue, $iKateg, $sDesc, $sType) |
|
| getParam ($sKey, $bFromCache=true) |
|
| setParam ($sKey, $mixedValue, $iMixId=0) |
|
| getParamsMix ($iId) |
|
| getParamsMixActive ($sType) |
|
| getParamsMixes ($sType, $mixedPublished=false) |
|
| setTimezone ($sTimezone) |
|
| getEncoding () |
|
| setErrorChecking ($b) |
|
| getDbCacheObject () |
|
| genDbCacheKey ($sName) |
|
| getCache ($sName, $sFunc) |
|
| setCache ($sName, $mData) |
|
| fromCache ($sName, $sFunc) |
|
| cleanCache ($sName) |
|
& | fromMemory ($sName, $sFunc) |
|
| cleanMemory ($sName) |
|
| cleanMemoryAll () |
|
| escape ($s) |
|
| implode_escape ($mixed) |
|
| unescape ($mixed) |
|
| prepare ($sQuery) |
|
| prepareAsString ($sQuery) |
|
| arrayToSQL ($a, $sDiv=',', $sOperator='=', $bWildcardSpaceChars=false) |
|
| executeSQL ($sPath, $aReplace=array(), $isBreakOnError=true) |
|
Permalinks for any content.
An object of the class allows to check whether permalink is enabled and get it for specified standard URI.
All permalinks must match the whole URL, to be automatially determined. There are only 2 permlinks which are replaced by prefix:
- modules/?r= - for module URLs
- page.php?i= - for pages URLs
Example of usage
- Register permalink in database by adding necessary info in the
sys_permalinks
table.
- Create an object and process the URI
$oPermalinks->permalink('modules/?r=news/home');
Definition BxDolPermalinks.php:49
Memberships/ACL:
Doesn't depend on user's membership.
Alerts(hooks)
The following alert can be used when permalink call is performed:
- $sUnit - system
- $sAction - permalink | unpermalink
- $iObjectId - 0 (not used)
- $iSenderId - 0 (not used)
- $aExtra['link'] - the link to check permalink for
- $aExtra['return_data'] - it is possible to override default behavior, by setting 'return_data' to non NULL value.