Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbFilesDb Class Reference
Inheritance diagram for ChWsbFilesDb:
ChWsbModuleDb ChWsbDb ChFilesDb ChPhotosDb ChSoundsDb ChVideosDb

Public Member Functions

 __construct (&$oConfig)
 
 _changeFileCondition ($iFile, $sField, $sValue)
 
 approveFile ($iFile)
 
 disapproveFile ($iFile)
 
 makeFeatured ($iFile)
 
 makeUnFeatured ($iFile)
 
 addToFavorites ($iFile)
 
 removeFromFavorites ($iFile)
 
 checkFavoritesIn ($iFile)
 
 getFavorites ($iMember, $iFrom=0, $iPerPage=10)
 
 getFavoritesCount ($iFile)
 
 getFilesByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth, $sStatus='approved')
 
 insertData ($aData)
 
 updateData ($iFileId, $aData)
 
 _setData ($aData, $iFileId=0)
 
 deleteData ($iFile)
 
 getFilesCountByParams (&$aParams)
 
 getFilesCountByAuthor ($iProfileId, $sStatus='approved')
 
 getFilesByAuthor ($iProfileId)
 
 getFileInfo ($aIdent, $bSimple=false, $aFields=array())
 
 getSettingsCategory ()
 
 getMemberList ($sArg)
 
- 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
 
 $iViever
 
 $sFileTable
 
 $sFavoriteTable
 
 $aFileFields
 
 $aFavoriteFields
 
- 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

This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/

Definition at line 10 of file ChWsbFilesDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbFilesDb::__construct ( $oConfig)

Reimplemented in ChVideosDb, ChSoundsDb, ChPhotosDb, and ChFilesDb.

Definition at line 28 of file ChWsbFilesDb.php.

Member Function Documentation

◆ _changeFileCondition()

ChWsbFilesDb::_changeFileCondition (   $iFile,
  $sField,
  $sValue 
)

Definition at line 76 of file ChWsbFilesDb.php.

◆ _setData()

ChWsbFilesDb::_setData (   $aData,
  $iFileId = 0 
)

Definition at line 198 of file ChWsbFilesDb.php.

◆ addToFavorites()

ChWsbFilesDb::addToFavorites (   $iFile)

Definition at line 103 of file ChWsbFilesDb.php.

◆ approveFile()

ChWsbFilesDb::approveFile (   $iFile)

Definition at line 83 of file ChWsbFilesDb.php.

◆ checkFavoritesIn()

ChWsbFilesDb::checkFavoritesIn (   $iFile)

Definition at line 132 of file ChWsbFilesDb.php.

◆ deleteData()

ChWsbFilesDb::deleteData (   $iFile)

Definition at line 218 of file ChWsbFilesDb.php.

◆ disapproveFile()

ChWsbFilesDb::disapproveFile (   $iFile)

Definition at line 88 of file ChWsbFilesDb.php.

◆ getFavorites()

ChWsbFilesDb::getFavorites (   $iMember,
  $iFrom = 0,
  $iPerPage = 10 
)

Definition at line 142 of file ChWsbFilesDb.php.

◆ getFavoritesCount()

ChWsbFilesDb::getFavoritesCount (   $iFile)

Definition at line 151 of file ChWsbFilesDb.php.

◆ getFileInfo()

ChWsbFilesDb::getFileInfo (   $aIdent,
  $bSimple = false,
  $aFields = array() 
)

Definition at line 286 of file ChWsbFilesDb.php.

◆ getFilesByAuthor()

ChWsbFilesDb::getFilesByAuthor (   $iProfileId)

Definition at line 277 of file ChWsbFilesDb.php.

◆ getFilesByMonth()

ChWsbFilesDb::getFilesByMonth (   $iYear,
  $iMonth,
  $iNextYear,
  $iNextMonth,
  $sStatus = 'approved' 
)

Definition at line 158 of file ChWsbFilesDb.php.

◆ getFilesCountByAuthor()

ChWsbFilesDb::getFilesCountByAuthor (   $iProfileId,
  $sStatus = 'approved' 
)

Definition at line 267 of file ChWsbFilesDb.php.

◆ getFilesCountByParams()

ChWsbFilesDb::getFilesCountByParams ( $aParams)

Definition at line 229 of file ChWsbFilesDb.php.

◆ getMemberList()

ChWsbFilesDb::getMemberList (   $sArg)

Definition at line 331 of file ChWsbFilesDb.php.

◆ getSettingsCategory()

ChWsbFilesDb::getSettingsCategory ( )

Reimplemented in ChVideosDb, ChSoundsDb, ChPhotosDb, and ChFilesDb.

Definition at line 327 of file ChWsbFilesDb.php.

◆ insertData()

ChWsbFilesDb::insertData (   $aData)

Definition at line 182 of file ChWsbFilesDb.php.

◆ makeFeatured()

ChWsbFilesDb::makeFeatured (   $iFile)

Definition at line 93 of file ChWsbFilesDb.php.

◆ makeUnFeatured()

ChWsbFilesDb::makeUnFeatured (   $iFile)

Definition at line 98 of file ChWsbFilesDb.php.

◆ removeFromFavorites()

ChWsbFilesDb::removeFromFavorites (   $iFile)

Definition at line 117 of file ChWsbFilesDb.php.

◆ updateData()

ChWsbFilesDb::updateData (   $iFileId,
  $aData 
)

Definition at line 189 of file ChWsbFilesDb.php.

Member Data Documentation

◆ $_oConfig

ChWsbFilesDb::$_oConfig

Definition at line 12 of file ChWsbFilesDb.php.

◆ $aFavoriteFields

ChWsbFilesDb::$aFavoriteFields

Definition at line 23 of file ChWsbFilesDb.php.

◆ $aFileFields

ChWsbFilesDb::$aFileFields

Definition at line 21 of file ChWsbFilesDb.php.

◆ $iViever

ChWsbFilesDb::$iViever

Definition at line 14 of file ChWsbFilesDb.php.

◆ $sFavoriteTable

ChWsbFilesDb::$sFavoriteTable

Definition at line 18 of file ChWsbFilesDb.php.

◆ $sFileTable

ChWsbFilesDb::$sFileTable

Definition at line 16 of file ChWsbFilesDb.php.


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