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

Public Member Functions

 __construct (&$oConfig)
 
 getUpcomingEvent ($isFeatured)
 
 getEntriesByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth)
 
 deleteEntryByIdAndOwner ($iId, $iOwner, $isAdmin)
 
- Public Member Functions inherited from ChWsbTwigModuleDb
 isAnyPublicContent ()
 
 getEntryByIdAndOwner ($iId, $iOwner, $isAdmin)
 
 getEntryById ($iId)
 
 getEntriesByAuthor ($iProfileId)
 
 getCountByAuthorAndStatus ($iProfileId, $sStatus)
 
 getEntryByUri ($sUri)
 
 getLatestFeaturedItem ()
 
 markAsFeatured ($iId)
 
 activateEntry ($iId)
 
 updateMedia ($iEntryId, $aMediaAdd, $aMediaDelete, $sMediaType)
 
 insertMedia ($iEntryId, $aMedia, $sMediaType)
 
 deleteMedia ($iEntryId, $aMedia, $sMediaType)
 
 deleteEntryMediaAll ($iEntryId, $sMediaType)
 
 deleteMediaFile ($iMediaId, $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)
 
 getBroadcastRecipients ($iEntryId)
 
 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 13 of file ChEventsDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChEventsDb::__construct ( $oConfig)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 18 of file ChEventsDb.php.

Member Function Documentation

◆ deleteEntryByIdAndOwner()

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

Reimplemented from ChWsbTwigModuleDb.

Definition at line 67 of file ChEventsDb.php.

◆ getEntriesByMonth()

ChEventsDb::getEntriesByMonth (   $iYear,
  $iMonth,
  $iNextYear,
  $iNextMonth 
)

Reimplemented from ChWsbTwigModuleDb.

Definition at line 52 of file ChEventsDb.php.

◆ getUpcomingEvent()

ChEventsDb::getUpcomingEvent (   $isFeatured)

Definition at line 43 of file ChEventsDb.php.


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