UNA
|
Public Member Functions | |
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) | |
Static Public Member Functions | |
static | getInstance () |
![]() | |
static | getInstanceWithConf ($aDbConf, &$sError) |
static | getLink () |
Protected Member Functions | |
_fixUrlAmpersand ($sLink) | |
_fixUrl ($sLink) | |
![]() | |
__construct ($aDbConf=false) | |
balancer () | |
isParamInCache ($sKey) | |
log ($s) | |
executeStatement ($oStatement, $aBindings=array(), $bVerbose=null, &$iErrorCode=null) | |
executeStatementException ($oStatement, $aBindings=array(), $bVerbose=null) | |
executeStatementSilent ($oStatement, $aBindings=array(), $bVerbose=null) | |
errorOutput ($aError) | |
Protected Attributes | |
$sCacheFile | |
$aLinksStandard | |
$aLinksPermalink | |
$aPrefixesStandard | |
$aPrefixesPermalink | |
![]() | |
$_bPdoPersistent | |
$_iPdoFetchType | |
$_iPdoErrorMode | |
$_bErrorChecking | |
$_aError | |
$_sHost | |
$_sPort | |
$_sSocket | |
$_sDbname | |
$_sUser | |
$_sPassword | |
$_sCharset | |
$_sStorageEngine | |
$_oStatement = null | |
$_oDbCacheObject = null | |
Additional Inherited Members | |
![]() | |
static | $_rLink |
static | $_aDbCacheData = [] |
static | $_aParams |
static | $_sParamsCacheName = 'sys_options' |
static | $_sParamsCacheNameMixed = 'sys_options_mixed_' |
static | $_sParamsCacheNameMix = 'sys_options_mix_' |
static | $_sErrorKey = 'bx_db_error' |
static | $_aErrors |
static | $_bReadOnlyMode = true |
static | $_bMultuServersMode = false |
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:
sys_permalinks
table.Doesn't depend on user's membership.
The following alert can be used when permalink call is performed:
|
protected |
Reimplemented from BxDolFactory.
BxDolPermalinks::__clone | ( | ) |
Prevent cloning the instance
Reimplemented from BxDolDb.
|
static |
Get singleton instance of the class
Reimplemented from BxDolDb.
BxDolPermalinks::getPageNameFromLink | ( | $sLink, | |
$iLength = false ) |
Get page name (changeable page of URL) from the URL.
$sLink | - relative UNpermalinked, it is better to use unpermalink method to make sure that correct url is passed here |
$iLength | - position of the page name, or false to detect automatically |
BxDolPermalinks::permalink | ( | $sLink, | |
$aParams = array() ) |
Make permalink from link.
$sLink | - relative URL. |
$aParams | - params to add to the url. |
system
permalink
link
- [string] input linkparams
- [array] by ref, additional params array as key&value pairs, can be overridden in hook processingreturn_data
- [string] by ref, output permalink, can be overridden in hook processing
BxDolPermalinks::redirectIfNecessary | ( | $aSkip = array() | ) |
redirect to the correct url after switching skin or language only correct modules urls are supported
BxDolPermalinks::unpermalink | ( | $sLink, | |
$isStripBaseUrl = true ) |
Remove permalink from link.
$sLink | - relative or absoulte URL. |
$isStripBaseUrl | - strip site prefix (absolute URL) automatically (enabled by default) |
system
unpermalink
link
- [string] input permalinkstrip_base_url
- [boolean] strip base URL from output linkreturn_data
- [string] by ref, output link, can be overridden in hook processing