Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbConnectDb Class Reference
Inheritance diagram for ChWsbConnectDb:
ChWsbModuleDb ChWsbDb ChChatPlusDb ChDolphConDb ChFaceBookConnectDb

Public Member Functions

 __construct (&$oConfig)
 
 getProfileId ($iRemoteId)
 
 saveRemoteId ($iProfileId, $iRemoteId)
 
 deleteRemoteAccount ($iProfileId)
 
 makeFriend ($iMemberId, $iProfileId)
 
 createProfile (&$aProfileFields)
 
 updateProfileStatus ($iProfileId, $sStatus)
 
 isFieldExist ($sFieldName)
 
 isEmailExisting ($sEmail)
 
 getCountryCode ($sCountry)
 
- 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

 $sTablePrefix
 
- 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 ChWsbConnectDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbConnectDb::__construct ( $oConfig)

Reimplemented in ChFaceBookConnectDb, ChDolphConDb, and ChChatPlusDb.

Definition at line 14 of file ChWsbConnectDb.php.

Member Function Documentation

◆ createProfile()

ChWsbConnectDb::createProfile ( $aProfileFields)

Create new profile;

Parameters
(array) $aProfileFields - Profiles table's fields;
Returns
: (integer) - profile's Id;

Definition at line 87 of file ChWsbConnectDb.php.

◆ deleteRemoteAccount()

ChWsbConnectDb::deleteRemoteAccount (   $iProfileId)

Delete remote account

Parameters
$iProfileIdinteger
Returns
void

Reimplemented in ChFaceBookConnectDb.

Definition at line 57 of file ChWsbConnectDb.php.

◆ getCountryCode()

ChWsbConnectDb::getCountryCode (   $sCountry)

Get country's ISO code;

Parameters
:$sCountry(string) - country name;
Returns
: (string); - country ISO code;

Definition at line 156 of file ChWsbConnectDb.php.

◆ getProfileId()

ChWsbConnectDb::getProfileId (   $iRemoteId)

Check remote profile id

Parameters
$iRemoteIdinteger
Returns
local profile id

Reimplemented in ChFaceBookConnectDb.

Definition at line 27 of file ChWsbConnectDb.php.

◆ isEmailExisting()

ChWsbConnectDb::isEmailExisting (   $sEmail)

Check existing email

Parameters
$sEmailstring
Returns
boolean

Definition at line 142 of file ChWsbConnectDb.php.

◆ isFieldExist()

ChWsbConnectDb::isFieldExist (   $sFieldName)

Function will check field name in 'Profiles` table;

Parameters
$sFieldNamestring
Returns
: (boolean);

Definition at line 128 of file ChWsbConnectDb.php.

◆ makeFriend()

ChWsbConnectDb::makeFriend (   $iMemberId,
  $iProfileId 
)

Make as friends

Parameters
$iMemberIdinteger
$iProfileIdintger
Returns
void

Definition at line 72 of file ChWsbConnectDb.php.

◆ saveRemoteId()

ChWsbConnectDb::saveRemoteId (   $iProfileId,
  $iRemoteId 
)

Save new remote ID

Parameters
$iProfileIdinteger
$iRemoteIdinteger
Returns
bool

Reimplemented in ChFaceBookConnectDb.

Definition at line 42 of file ChWsbConnectDb.php.

◆ updateProfileStatus()

ChWsbConnectDb::updateProfileStatus (   $iProfileId,
  $sStatus 
)

Function will update profile's status;

Parameters
:$iProfileId(integer) - profile's Id;
:$sStatus(string) - profile's status;
Returns
: void;

Definition at line 113 of file ChWsbConnectDb.php.

Member Data Documentation

◆ $sTablePrefix

ChWsbConnectDb::$sTablePrefix

Definition at line 12 of file ChWsbConnectDb.php.


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