UNA
Loading...
Searching...
No Matches
BxAdsDb Class Reference
Inheritance diagram for BxAdsDb:
BxBaseModTextDb BxBaseModGeneralDb BxDolModuleDb BxDolModuleQuery BxDolDb iBxDolSingleton BxDolFactory iBxDolSingleton

Public Member Functions

 __construct (&$oConfig)
 
 getSourcesDetailsForm ()
 
 getSources ($aParams=[])
 
 getOption ($aParams)
 
 getSourcesOptions ($iProfileId=0, $iSourceId=0)
 
 updateSourceOption ($iProfileId, $iOptionId, $sValue)
 
 getEntriesBy ($aParams=array())
 
 insertCategoryType ($aParamsSet)
 
 deleteCategoryType ($aParamsWhere)
 
 getCategoryTypes ($aParams=array())
 
 updateCategory ($aParamsSet, $aParamsWhere)
 
 getCategories ($aParams=array())
 
 getDisplays ($sDisplayPrefix='', $mixedDisplayType='')
 
 cloneDisplay ($sDisplayName, $sNewDisplayName, $sNewDisplayTitle)
 
 isInterested ($iEntryId, $iProfileId)
 
 getInterested ($aParams)
 
 insertInterested ($aParamsSet)
 
 getCommodity ($aParams=[])
 
 insertCommodity ($iEntryId, $sType, $fAmount)
 
 deleteCommodity ($aWhere)
 
 registerLicense ($iProfileId, $iEntryId, $iCount, $sOrder, $sLicense)
 
 unregisterLicense ($iProfileId, $iEntryId, $sOrder, $sLicense)
 
 getLicense ($aParams=array())
 
 updateLicense ($aSet, $aWhere)
 
 deleteLicense ($aWhere)
 
 hasLicense ($iProfileId, $iEntryId)
 
 registerPromotion ($iProfileId, $iCommodityId, $iEntryId, $fAmount, $sOrder, $sLicense)
 
 unregisterPromotion ($iProfileId, $iCommodityId, $iEntryId, $sOrder, $sLicense)
 
 getPromotionLicense ($aParams=[])
 
 getOffersBy ($aParams=array())
 
 insertOffer ($aSet)
 
 updateOffer ($aSet, $aWhere)
 
 deleteOffer ($aWhere)
 
 getFromPromotionTracker ($aParams)
 
 updatePromotionTracker ($iEntryId, $sCounter, $iCounter=1)
 
- Public Member Functions inherited from BxBaseModTextDb
 searchByAuthorTerm ($iAuthor, $sTerm, $iLimit)
 
 isPollPerformed ($iPollId, $iAuthorId, $iAuthorIp=0)
 
 getPolls ($aParams)
 
 getPollInfoById ($iId)
 
 updatePolls ($aParamsSet, $aParamsWhere)
 
 deletePolls ($aParams)
 
 deletePollsByIds ($mixedId)
 
 getPollAnswers ($aParams=array())
 
 insertPollAnswer ($aParamsSet)
 
 updatePollAnswers ($aParamsSet, $aParamsWhere)
 
 deletePollAnswers ($aParams)
 
 deletePollAnswersByIds ($mixedId)
 
 getUnusedLinks ($iUserId)
 
 deleteUnusedLinks ($iUserId, $iLinkId=0)
 
 saveLink ($iContentId, $iLinkId)
 
 deleteLink ($iId)
 
 deleteLinks ($iContentId)
 
 getLinks ($iContentId)
 
 getStatByProfile ($iAuthorId)
 
 getLinksBy ($aParams=array())
 
- Public Member Functions inherited from BxBaseModGeneralDb
 getContentInfoById ($iContentId)
 
 getEntriesNumByContext ($iProfileId)
 
 getEntriesByAuthor ($iProfileId)
 
 getEntriesNumByAuthor ($iProfileId)
 
 getEntriesNumByParams ($aParams=[])
 
 updateEntriesBy ($aParamsSet, $aParamsWhere)
 
 updateStatusAdmin ($iContentId, $isActive)
 
 publishEntries ()
 
 alterFulltextIndex ()
 
 deleteNestedById ($iNestedId, $sTableKey, $sTableName)
 
 getNestedBy ($aParams, $sTableName)
 
- Public Member Functions inherited from BxDolModuleDb
 __construct ($oConfig)
 
 getPrefix ()
 
- Public Member Functions inherited from BxDolModuleQuery
 __clone ()
 
 getModuleById ($iId, $bFromCache=true)
 
 getModuleByName ($sName, $bFromCache=true)
 
 getModuleByUri ($sUri, $bFromCache=true)
 
 enableModuleByUri ($sUri)
 
 disableModuleByUri ($sUri)
 
 setModulePendingUninstall ($sUri, $bPendingUninstall)
 
 isModule ($sUri)
 
 isModuleByName ($sName)
 
 isModuleParamsUsed ($sName, $sUri, $sPath, $sPrefixDb, $sPrefixClass)
 
 isEnabled ($sUri)
 
 isEnabledByName ($sName)
 
 getModules ()
 
 getModulesBy ($aParams=array(), $bFromCache=true)
 
 isModuleContent ($sName)
 
 isModuleContext ($sName)
 
 isModuleProfile ($sName)
 
 getModulesUri ()
 
 getDependent ($sName, $sUri)
 
 updateModule ($aParamsSet, $aParamsWhere=array())
 
 checkModulesSubtypes ()
 
- Public Member Functions inherited from BxDolDb
 setReadOnlyMode ($b)
 
 connect ()
 
 disconnect ()
 
 ping ()
 
 pdoExec ($sQuery)
 
 pdoQuery ($sQuery)
 
 pdoExceptionHandler ($oException)
 
 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)
 

Protected Member Functions

 _getEntriesBySearchIds ($aParams, &$aMethod, &$sSelectClause, &$sJoinClause, &$sWhereClause, &$sOrderClause, &$sLimitClause)
 
- Protected Member Functions inherited from BxBaseModTextDb
 _deletePolls (&$aPolls)
 
 _deletePollAnswers (&$aAnswers)
 
- Protected Member Functions inherited from BxBaseModGeneralDb
 _addCustomConditions ($aParams, &$aMethod, &$sSelectClause, &$sJoinClause, &$sWhereClause, &$sOrderClause, &$sLimitClause)
 
 _addConditionsForAuthorStatus ($aParams, &$aMethod, &$sSelectClause, &$sJoinClause, &$sWhereClause, &$sOrderClause, &$sLimitClause)
 
 _addConditionsForCf ($aParams, &$aMethod, &$sSelectClause, &$sJoinClause, &$sWhereClause, &$sOrderClause, &$sLimitClause)
 
 _getEntriesBySearchIdsOrder ($aParams, &$sOrderClause)
 
 _getEbsiLike ($sValue)
 
- Protected Member Functions inherited from BxDolDb
 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from BxDolModuleQuery
static getInstance ()
 
- Static Public Member Functions inherited from BxDolDb
static getInstanceWithConf ($aDbConf, &$sError)
 
static getLink ()
 
- Protected Attributes inherited from BxBaseModGeneralDb
 $_oConfig
 
- Protected Attributes inherited from BxDolModuleDb
 $_sPrefix
 
- Protected Attributes inherited from BxDolDb
 $_bPdoPersistent
 
 $_iPdoFetchType
 
 $_iPdoErrorMode
 
 $_bErrorChecking
 
 $_aError
 
 $_sHost
 
 $_sPort
 
 $_sSocket
 
 $_sDbname
 
 $_sUser
 
 $_sPassword
 
 $_sCharset
 
 $_sStorageEngine
 
 $_oStatement = null
 
 $_oDbCacheObject = null
 
- Static Protected Attributes inherited from BxDolDb
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
 

Constructor & Destructor Documentation

◆ __construct()

BxAdsDb::__construct ( & $oConfig)

Reimplemented from BxBaseModTextDb.

Member Function Documentation

◆ _getEntriesBySearchIds()

BxAdsDb::_getEntriesBySearchIds ( $aParams,
& $aMethod,
& $sSelectClause,
& $sJoinClause,
& $sWhereClause,
& $sOrderClause,
& $sLimitClause )
protected

Reimplemented from BxBaseModTextDb.

◆ getEntriesBy()

BxAdsDb::getEntriesBy ( $aParams = array())

Reimplemented from BxBaseModGeneralDb.

◆ getOption()

BxAdsDb::getOption ( $sName)

get mysql option

Reimplemented from BxDolDb.


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