Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbTextDb Class Reference
Inheritance diagram for ChWsbTextDb:
ChWsbModuleDb ChWsbDb ChArlDb ChFdbDb ChNewsDb

Public Member Functions

 __construct (&$oConfig)
 
 getEntries ($aParams=array())
 
 deleteEntries ($mixed)
 
 updateEntry ($mixed, $aValues)
 
 getCount ($aParams=array())
 
 getByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth)
 
 publish (&$aIds)
 
- 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
 
- 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 10 of file ChWsbTextDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbTextDb::__construct ( $oConfig)

Reimplemented in ChNewsDb, ChFdbDb, and ChArlDb.

Definition at line 14 of file ChWsbTextDb.php.

Member Function Documentation

◆ deleteEntries()

ChWsbTextDb::deleteEntries (   $mixed)

Delete entries.

Parameters
integer/array$mixed ID or an array of ID-s.
Returns
boolean result of operation.

Definition at line 119 of file ChWsbTextDb.php.

◆ getByMonth()

ChWsbTextDb::getByMonth (   $iYear,
  $iMonth,
  $iNextYear,
  $iNextMonth 
)

Definition at line 164 of file ChWsbTextDb.php.

◆ getCount()

ChWsbTextDb::getCount (   $aParams = array())

Reimplemented in ChFdbDb.

Definition at line 145 of file ChWsbTextDb.php.

◆ getEntries()

ChWsbTextDb::getEntries (   $aParams = array())

Get entries.

Reimplemented in ChFdbDb.

Definition at line 23 of file ChWsbTextDb.php.

◆ publish()

ChWsbTextDb::publish ( $aIds)

Definition at line 173 of file ChWsbTextDb.php.

◆ updateEntry()

ChWsbTextDb::updateEntry (   $mixed,
  $aValues 
)

Update entries.

Parameters
integer/array$mixed ID or an array of ID-s.
array$aValueskey/value pears to be saved in the DB.
Returns
boolean result of operation.

Definition at line 134 of file ChWsbTextDb.php.

Member Data Documentation

◆ $_oConfig

ChWsbTextDb::$_oConfig

Definition at line 12 of file ChWsbTextDb.php.


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