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

Public Member Functions

 __construct (&$oConfig)
 
 getMembershipActions ()
 
 getSiteById ($iSiteId)
 
 getEntryByIdAndOwner ($iSiteId, $iUnusedParam=0, $bUnusedParam=true)
 
 getSiteByEntryUri ($sEntryUri)
 
 getSiteLatest ()
 
 getSiteByUrl ($sUrl)
 
 getSites ()
 
 getSitesByAuthor ($iProfileId)
 
 markFeatured ($iSiteId)
 
 deleteSiteById ($iSiteId)
 
 getProfileIdByNickName ($sNick)
 
 getSitesByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth)
 
 getSettingsCategory ($sName)
 
 setStatusSite ($iSiteId, $sStatus)
 
 getCountByOwnerAndStatus ($iOwnerId, $sStatus)
 
 addRequest ($aSTWArgs, $aResponse, $sHash)
 
 addAccountInfo ($sKeyID, $aResponse)
 
 getAccountInfo ($sKeyID)
 
- 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)
 

Public Attributes

 $_oConfig
 
 $sTablePrefix
 
 $_sFieldId = 'id'
 
 $_sFieldAuthorId = 'ownerid'
 
 $_sFieldUri = 'entryUri'
 
 $_sFieldTitle = 'title'
 
 $_sFieldDescription = 'description'
 
 $_sFieldThumb = 'photo'
 
- Public Attributes inherited from ChWsbModuleDb
 $_sPrefix
 
- Public Attributes inherited from ChWsbDb
 $port
 
 $socket
 
 $dbname
 
 $user
 
 $password
 
 $oParams = null
 
 $oDbCacheObject = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbDb
static getInstance ()
 
- 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 12 of file ChSitesDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChSitesDb::__construct ( $oConfig)

Definition at line 26 of file ChSitesDb.php.

Member Function Documentation

◆ addAccountInfo()

ChSitesDb::addAccountInfo (   $sKeyID,
  $aResponse 
)

Definition at line 129 of file ChSitesDb.php.

◆ addRequest()

ChSitesDb::addRequest (   $aSTWArgs,
  $aResponse,
  $sHash 
)

Definition at line 114 of file ChSitesDb.php.

◆ deleteSiteById()

ChSitesDb::deleteSiteById (   $iSiteId)

Definition at line 80 of file ChSitesDb.php.

◆ getAccountInfo()

ChSitesDb::getAccountInfo (   $sKeyID)

Definition at line 143 of file ChSitesDb.php.

◆ getCountByOwnerAndStatus()

ChSitesDb::getCountByOwnerAndStatus (   $iOwnerId,
  $sStatus 
)

Definition at line 107 of file ChSitesDb.php.

◆ getEntryByIdAndOwner()

ChSitesDb::getEntryByIdAndOwner (   $iSiteId,
  $iUnusedParam = 0,
  $bUnusedParam = true 
)

Definition at line 45 of file ChSitesDb.php.

◆ getMembershipActions()

ChSitesDb::getMembershipActions ( )

Definition at line 34 of file ChSitesDb.php.

◆ getProfileIdByNickName()

ChSitesDb::getProfileIdByNickName (   $sNick)

Definition at line 85 of file ChSitesDb.php.

◆ getSettingsCategory()

ChSitesDb::getSettingsCategory (   $sName)

Definition at line 97 of file ChSitesDb.php.

◆ getSiteByEntryUri()

ChSitesDb::getSiteByEntryUri (   $sEntryUri)

Definition at line 50 of file ChSitesDb.php.

◆ getSiteById()

ChSitesDb::getSiteById (   $iSiteId)

Definition at line 40 of file ChSitesDb.php.

◆ getSiteByUrl()

ChSitesDb::getSiteByUrl (   $sUrl)

Definition at line 60 of file ChSitesDb.php.

◆ getSiteLatest()

ChSitesDb::getSiteLatest ( )

Definition at line 55 of file ChSitesDb.php.

◆ getSites()

ChSitesDb::getSites ( )

Definition at line 65 of file ChSitesDb.php.

◆ getSitesByAuthor()

ChSitesDb::getSitesByAuthor (   $iProfileId)

Definition at line 70 of file ChSitesDb.php.

◆ getSitesByMonth()

ChSitesDb::getSitesByMonth (   $iYear,
  $iMonth,
  $iNextYear,
  $iNextMonth 
)

Definition at line 90 of file ChSitesDb.php.

◆ markFeatured()

ChSitesDb::markFeatured (   $iSiteId)

Definition at line 75 of file ChSitesDb.php.

◆ setStatusSite()

ChSitesDb::setStatusSite (   $iSiteId,
  $sStatus 
)

Definition at line 102 of file ChSitesDb.php.

Member Data Documentation

◆ $_oConfig

ChSitesDb::$_oConfig

Definition at line 14 of file ChSitesDb.php.

◆ $_sFieldAuthorId

ChSitesDb::$_sFieldAuthorId = 'ownerid'

Definition at line 17 of file ChSitesDb.php.

◆ $_sFieldDescription

ChSitesDb::$_sFieldDescription = 'description'

Definition at line 20 of file ChSitesDb.php.

◆ $_sFieldId

ChSitesDb::$_sFieldId = 'id'

Definition at line 16 of file ChSitesDb.php.

◆ $_sFieldThumb

ChSitesDb::$_sFieldThumb = 'photo'

Definition at line 21 of file ChSitesDb.php.

◆ $_sFieldTitle

ChSitesDb::$_sFieldTitle = 'title'

Definition at line 19 of file ChSitesDb.php.

◆ $_sFieldUri

ChSitesDb::$_sFieldUri = 'entryUri'

Definition at line 18 of file ChSitesDb.php.

◆ $sTablePrefix

ChSitesDb::$sTablePrefix

Definition at line 15 of file ChSitesDb.php.


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