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

Public Member Functions

 __construct ($sCharset='utf8', $sCollate='utf8_unicode_ci')
 
 _getTableStruct ($name, $data=0)
 
 _getAllTables ($data=false)
 
 _restoreFromDumpFile ($file)
 
- 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

 $sCharset
 
 $sCollate
 
 $sInputs
 
- 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 ChWsbDatabaseBackup.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbDatabaseBackup::__construct (   $sCharset = 'utf8',
  $sCollate = 'utf8_unicode_ci' 
)

Definition at line 16 of file ChWsbDatabaseBackup.php.

Member Function Documentation

◆ _getAllTables()

ChWsbDatabaseBackup::_getAllTables (   $data = false)

Definition at line 80 of file ChWsbDatabaseBackup.php.

◆ _getTableStruct()

ChWsbDatabaseBackup::_getTableStruct (   $name,
  $data = 0 
)

Definition at line 29 of file ChWsbDatabaseBackup.php.

◆ _restoreFromDumpFile()

ChWsbDatabaseBackup::_restoreFromDumpFile (   $file)

Definition at line 88 of file ChWsbDatabaseBackup.php.

Member Data Documentation

◆ $sCharset

ChWsbDatabaseBackup::$sCharset

Definition at line 13 of file ChWsbDatabaseBackup.php.

◆ $sCollate

ChWsbDatabaseBackup::$sCollate

Definition at line 13 of file ChWsbDatabaseBackup.php.

◆ $sInputs

ChWsbDatabaseBackup::$sInputs

Definition at line 14 of file ChWsbDatabaseBackup.php.


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