Cheetah
Public Member Functions | List of all members
ChStoreDb Class Reference
Inheritance diagram for ChStoreDb:
ChWsbTwigModuleDb ChWsbModuleDb ChWsbDb

Public Member Functions

 __construct (&$oConfig)
 
 deleteEntryByIdAndOwner ($iId, $iOwner, $isAdmin)
 
 toggleProductFileVisibility ($iFileId)
 
 updatePriceRange ($iEntryId)
 
 insertMediaFiles ($iEntryId, $aMedia, $iProfileId)
 
 deleteMediaFile ($iMediaId, $sMediaType)
 
 deleteEntryMediaFileAll ($iEntryId, $sMediaType)
 
 getFileInfo ($iEntryId, $iMediaId)
 
 getFileInfoByFileId ($iId)
 
 getFiles ($iEntryId, $isFilterHidden=false)
 
 getFilesByAuthor ($iAuthorId)
 
 registerCustomer ($iClientId, $iItemId, $sOrderId, $iCount, $iDate)
 
 unregisterCustomer ($iClientId, $iItemId, $sOrderId)
 
 isCustomer ($iClientId, $iProductId)
 
 isPurchasedItem ($iClientId, $iFileId)
 
 removeCustomersFromAllEntries ($iProfileId)
 
 getBroadcastRecipients ($iProductId)
 
- Public Member Functions inherited from ChWsbTwigModuleDb
 isAnyPublicContent ()
 
 getEntryByIdAndOwner ($iId, $iOwner, $isAdmin)
 
 getEntryById ($iId)
 
 getEntriesByAuthor ($iProfileId)
 
 getCountByAuthorAndStatus ($iProfileId, $sStatus)
 
 getEntryByUri ($sUri)
 
 getLatestFeaturedItem ()
 
 getEntriesByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth)
 
 markAsFeatured ($iId)
 
 activateEntry ($iId)
 
 updateMedia ($iEntryId, $aMediaAdd, $aMediaDelete, $sMediaType)
 
 insertMedia ($iEntryId, $aMedia, $sMediaType)
 
 deleteMedia ($iEntryId, $aMedia, $sMediaType)
 
 deleteEntryMediaAll ($iEntryId, $sMediaType)
 
 getMediaIds ($iEntryId, $sMediaType)
 
 isMediaInUse ($iMediaId, $sMediaType)
 
 getMedia ($iEntryId, $iMediaId, $sMediaType)
 
 setThumbnail ($iEntryId, $iImageId)
 
 getForumById ($iForumId)
 
 createForum ($aDataEntry, $sUsername)
 
 deleteForum ($iEntryId)
 
 getProfileNickNameById ($iId)
 
 getProfileIdByNickName ($sNick, $isProcessDbInput=true)
 
 getSettingsCategory ($sName)
 
 getPotentialVisitors ($iProfileId)
 
 joinEntry ($iEntryId, $iProfileId, $isConfirmed)
 
 leaveEntry ($iEntryId, $iProfileId)
 
 isFan ($iEntryId, $iProfileId, $isConfirmed)
 
 getFansBrowse (&$aProfiles, $iEntryId, $iStart, $iMaxNum)
 
 getFans (&$aProfiles, $iEntryId, $isConfirmed, $iStart, $iMaxNum, $aFilter=array())
 
 confirmFans ($iEntryId, $aProfileIds)
 
 removeFans ($iEntryId, $aProfileIds)
 
 removeFanFromAllEntries ($iProfileId)
 
 removeAdminFromAllEntries ($iProfileId)
 
 rejectFans ($iEntryId, $aProfileIds)
 
 getAdmins (&$aProfiles, $iEntryId, $iStart, $iMaxNum, $aFilter=array())
 
 isGroupAdmin ($iEntryId, $iProfileId)
 
 addGroupAdmin ($iEntryId, $aProfileIds)
 
 removeGroupAdmin ($iEntryId, $aProfileIds)
 
- Public Member Functions inherited from ChWsbModuleDb
 __construct ($oConfig=null)
 
 getPrefix ()
 
 getModulesBy ($aParams=array())
 
 getModuleById ($iId)
 
 getModuleByUri ($sUri)
 
 isModule ($sUri)
 
 isModuleParamsUsed ($sUri, $sPath, $sPrefixDb, $sPrefixClass)
 
 getModules ()
 
 getDependent ($sUri)
 
 getSettingsCategoryId ($sCatName)
 
- Public Member Functions inherited from ChWsbDb
 setTimezone ($sTimezone)
 
 getLink ()
 
 res ($sQuery, $aBindings=[], $bReplaying=false)
 
 getAll ($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
 
 getRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC)
 
 getColumn ($sQuery, $aBindings=[])
 
 getOne ($sQuery, $aBindings=[], $iIndex=0)
 
 getFirstRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC)
 
 getNextRow ()
 
 getAllWithKey ($sQuery, $sFieldKey, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
 
 getPairs ($sQuery, $sFieldKey, $sFieldValue, $aBindings=[])
 
 query ($sQuery, $aBindings=[])
 
 getNumRows ($oStmt=null)
 
 getAffectedRows ($oStmt=null)
 
 fillArray ($oStmt, $iFetchType=PDO::FETCH_ASSOC)
 
 lastId ()
 
 getParam ($sName, $bCache=true)
 
 setParam ($sName, $sValue)
 
 listTables ()
 
 getFields ($sTable)
 
 isFieldExists ($sTable, $sFieldName)
 
 fetchField ($mixedQuery, $iField, $aBindings=[])
 
 getDbCacheObject ()
 
 genDbCacheKey ($sName)
 
 fromCache ($sName, $sFunc)
 
 cleanCache ($sName)
 
fromMemory ($sName, $sFunc)
 
 cleanMemory ($sName)
 
 arrayToSQL ($a, $sDiv=',')
 
 escape ($sText, $bReal=true)
 
 implode_escape ($mixed)
 
 unescape ($mixed)
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbDb
static getInstance ()
 
- Public Attributes inherited from ChWsbTwigModuleDb
 $_sTableMain = 'main'
 
 $_sTableShoutbox = ''
 
 $_sTableMediaPrefix = ''
 
 $_sFieldId = 'id'
 
 $_sFieldAuthorId = 'author_id'
 
 $_sFieldUri = 'uri'
 
 $_sFieldTitle = 'title'
 
 $_sFieldDescription = 'desc'
 
 $_sFieldTags = 'tags'
 
 $_sFieldThumb = 'thumb'
 
 $_sFieldStatus = 'status'
 
 $_sFieldFeatured = 'featured'
 
 $_sFieldCreated = 'created'
 
 $_sFieldDesc = 'desc'
 
 $_sFieldFansCount = 'fans_count'
 
 $_sTableFans = 'fans'
 
 $_sTableAdmins = 'admins'
 
 $_sFieldAllowViewTo = 'allow_view_to'
 
 $_sFieldCommentCount = 'comments_count'
 
- Public Attributes inherited from ChWsbModuleDb
 $_sPrefix
 
- Public Attributes inherited from ChWsbDb
 $port
 
 $socket
 
 $dbname
 
 $user
 
 $password
 
 $oParams = null
 
 $oDbCacheObject = null
 
- Protected Member Functions inherited from ChWsbDb
 __construct ()
 
 connect ()
 
 disconnect ()
 
- Protected Attributes inherited from ChWsbDb
 $host
 
 $link
 
 $oCurrentStmt
 
 $iCurrentFetchStyle
 
- Static Protected Attributes inherited from ChWsbDb
static $instance
 

Detailed Description

Definition at line 14 of file ChStoreDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChStoreDb::__construct ( $oConfig)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 19 of file ChStoreDb.php.

Member Function Documentation

◆ deleteEntryByIdAndOwner()

ChStoreDb::deleteEntryByIdAndOwner (   $iId,
  $iOwner,
  $isAdmin 
)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 40 of file ChStoreDb.php.

◆ deleteEntryMediaFileAll()

ChStoreDb::deleteEntryMediaFileAll (   $iEntryId,
  $sMediaType 
)

Definition at line 116 of file ChStoreDb.php.

◆ deleteMediaFile()

ChStoreDb::deleteMediaFile (   $iMediaId,
  $sMediaType 
)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 99 of file ChStoreDb.php.

◆ getBroadcastRecipients()

ChStoreDb::getBroadcastRecipients (   $iProductId)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 184 of file ChStoreDb.php.

◆ getFileInfo()

ChStoreDb::getFileInfo (   $iEntryId,
  $iMediaId 
)

Definition at line 124 of file ChStoreDb.php.

◆ getFileInfoByFileId()

ChStoreDb::getFileInfoByFileId (   $iId)

Definition at line 130 of file ChStoreDb.php.

◆ getFiles()

ChStoreDb::getFiles (   $iEntryId,
  $isFilterHidden = false 
)

Definition at line 137 of file ChStoreDb.php.

◆ getFilesByAuthor()

ChStoreDb::getFilesByAuthor (   $iAuthorId)

Definition at line 147 of file ChStoreDb.php.

◆ insertMediaFiles()

ChStoreDb::insertMediaFiles (   $iEntryId,
  $aMedia,
  $iProfileId 
)

Definition at line 86 of file ChStoreDb.php.

◆ isCustomer()

ChStoreDb::isCustomer (   $iClientId,
  $iProductId 
)

Definition at line 164 of file ChStoreDb.php.

◆ isPurchasedItem()

ChStoreDb::isPurchasedItem (   $iClientId,
  $iFileId 
)

Definition at line 169 of file ChStoreDb.php.

◆ registerCustomer()

ChStoreDb::registerCustomer (   $iClientId,
  $iItemId,
  $sOrderId,
  $iCount,
  $iDate 
)

Definition at line 154 of file ChStoreDb.php.

◆ removeCustomersFromAllEntries()

ChStoreDb::removeCustomersFromAllEntries (   $iProfileId)

Definition at line 174 of file ChStoreDb.php.

◆ toggleProductFileVisibility()

ChStoreDb::toggleProductFileVisibility (   $iFileId)

Definition at line 53 of file ChStoreDb.php.

◆ unregisterCustomer()

ChStoreDb::unregisterCustomer (   $iClientId,
  $iItemId,
  $sOrderId 
)

Definition at line 159 of file ChStoreDb.php.

◆ updatePriceRange()

ChStoreDb::updatePriceRange (   $iEntryId)

Definition at line 68 of file ChStoreDb.php.


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