|
UNA
|
Public Member Functions | |
| __clone () | |
| getOperators () | |
| getInfoById ( $iID) | |
| getIdByEmail ($sEmail) | |
| getIdByPhone ($sPhone) | |
| getIdById ($iId, $bClearCache=false) | |
| getStudioOperatorId () | |
| getEmail ($iID) | |
| getPassword ($iID) | |
| isOnline ($iId) | |
| updatePassword ($sPasswordHash, $sSalt, $iAccountId) | |
| logPassword ($iAccountId) | |
| getLastPasswordChanged ($iAccountId) | |
| getLastPasswordLog ($iAccountId) | |
| updateLoggedIn ($iID) | |
| updateAttemptsCounter ($iID) | |
| lockAccount ($iID) | |
| unlockAccount ($iID) | |
| updateLanguage ($iID, $iLangId) | |
| updateCurrentProfile ($iID, $iProfileId) | |
| updateEmailConfirmed ($isConfirmed, $iID) | |
| updatePhoneConfirmed ($isConfirmed, $iID) | |
| updatePhone ($sPhone, $iID) | |
| _updateField ($iId, $sFieldForUpdate, $sValue) | |
| delete ($iID) | |
| getAccounts ($aParams) | |
| searchByTerm ($sTerm, $iLimit) | |
| getAccountsForPruning ($sMode, $iAdded) | |
| Public Member Functions inherited from BxDolDb | |
| setReadOnlyMode ($b) | |
| connect () | |
| disconnect () | |
| ping () | |
| pdoExec ($sQuery) | |
| pdoQuery ($sQuery) | |
| pdoExceptionHandler ($oException) | |
| getOption ($sName) | |
| getOne ($oStatement, $aBindings=array(), $iIndex=0) | |
| getRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| getColumn ($oStatement, $aBindings=array(), $iFetchColumnNumber=0) | |
| getFirstRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| getNextRow ($iFetchType=PDO::FETCH_ASSOC) | |
| getAll ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| fillArray ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| getAllWithKey ($oStatement, $sFieldKey, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| getPairs ($oStatement, $sFieldKey, $sFieldValue, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC) | |
| getNumRows ($oStatement=null) | |
| getAffectedRows ($oStatement=null) | |
| lastId () | |
| query ($oStatement, $aBindings=array(), $bVerbose=null) | |
| res ($oStatement, $aBindings=array(), $bVerbose=null) | |
| getServerInfo () | |
| getVersion () | |
| listTables () | |
| getFields ($sTable) | |
| fetchField ($oStatement, $iField, $aBindings=array()) | |
| isTableExists ($sTable) | |
| isFieldExists ($sTable, $sFieldName) | |
| isIndexExists ($sTable, $sIndexName) | |
| error ($aError) | |
| cacheParams ($bForceCacheInvalidate=false, $bForceCacheInvalidateMixed=false) | |
| cacheParamsClear ($sCacheName='') | |
| isParam ($sKey, $bFromCache=true) | |
| addParam ($sName, $sValue, $iKateg, $sDesc, $sType) | |
| getParam ($sKey, $bFromCache=true) | |
| setParam ($sKey, $mixedValue, $iMixId=0) | |
| getParamsMix ($iId) | |
| getParamsMixActive ($sType) | |
| getParamsMixes ($sType, $mixedPublished=false) | |
| setTimezone ($sTimezone) | |
| getEncoding () | |
| setErrorChecking ($b) | |
| getDbCacheObject () | |
| genDbCacheKey ($sName) | |
| getCache ($sName, $sFunc) | |
| setCache ($sName, $mData) | |
| fromCache ($sName, $sFunc) | |
| cleanCache ($sName) | |
| & | fromMemory ($sName, $sFunc) |
| cleanMemory ($sName) | |
| cleanMemoryAll () | |
| escape ($s) | |
| isValidFieldName ($s) | |
| implode_escape ($mixed) | |
| unescape ($mixed) | |
| prepare ($sQuery) | |
| prepareAsString ($sQuery) | |
| arrayToSQL ($a, $sDiv=',', $sOperator='=', $bWildcardSpaceChars=false) | |
| executeSQL ($sPath, $aReplace=array(), $isBreakOnError=true) | |
Static Public Member Functions | |
| static | getInstance () |
| Static Public Member Functions inherited from BxDolDb | |
| static | getInstanceWithConf ($aDbConf, &$sError) |
| static | getLink () |
Protected Member Functions | |
| _getDataByField ($sField, $sValue) | |
| _getFieldByField ($sFieldRequested, $sFieldSearch, $sValue) | |
| Protected Member Functions inherited from BxDolDb | |
| __construct ($aDbConf=false) | |
| balancer () | |
| isParamInCache ($sKey) | |
| log ($s) | |
| executeStatement ($oStatement, $aBindings=array(), $bVerbose=null, &$iErrorCode=null) | |
| executeStatementException ($oStatement, $aBindings=array(), $bVerbose=null) | |
| executeStatementSilent ($oStatement, $aBindings=array(), $bVerbose=null) | |
| errorOutput ($aError) | |
Additional Inherited Members | |
| Protected Attributes inherited from BxDolDb | |
| $_bPdoPersistent | |
| $_iPdoFetchType | |
| $_iPdoErrorMode | |
| $_bErrorChecking | |
| $_aError | |
| $_sHost | |
| $_sPort | |
| $_sSocket | |
| $_sDbname | |
| $_sUser | |
| $_sPassword | |
| $_sCharset | |
| $_sStorageEngine | |
| $_oStatement = null | |
| $_oDbCacheObject = null | |
| Static Protected Attributes inherited from BxDolDb | |
| static | $_rLink |
| static | $_aDbCacheData = [] |
| static | $_aParams |
| static | $_sParamsCacheName = 'sys_options' |
| static | $_sParamsCacheNameMixed = 'sys_options_mixed_' |
| static | $_sParamsCacheNameMix = 'sys_options_mix_' |
| static | $_sErrorKey = 'bx_db_error' |
| static | $_aErrors |
| static | $_bReadOnlyMode = true |
| static | $_bMultuServersMode = false |
All queries related to account
|
protected |
Reimplemented from BxDolFactory.
| BxDolAccountQuery::__clone | ( | ) |
Prevent cloning the instance
Reimplemented from BxDolDb.
|
protected |
Get account by specified field name and value. It is for internal usage only. Use other funtions to get account info, like getInfoById, etc.
| string | $sField | database field name |
| mixed | $sValue | database field value |
|
protected |
Get account field by specified field name and value. In most cases it is for internal usage only. Use other funtions to get account info, like getIdByEmail, etc.
| string | $sFieldRequested | database field name to return |
| string | $sFieldSearch | database field name to search for |
| mixed | $sValue | database field value |
| BxDolAccountQuery::_updateField | ( | $iId, | |
| $sFieldForUpdate, | |||
| $sValue ) |
Update some field by account id In most cases it is for internal usage only. Use other funtions to get account info, like updateLogged, etc.
| string | $sFieldRequested | database field name to return |
| string | $sFieldSearch | database field name to search for |
| mixed | $sValue | database field value |
| BxDolAccountQuery::delete | ( | $iID | ) |
Delete account info by id
| int | $iID | profile id |
| BxDolAccountQuery::getAccounts | ( | $aParams | ) |
Get account(s) by params
| array | $aParams | browse params |
| BxDolAccountQuery::getEmail | ( | $iID | ) |
Get account email by id
| string | $s | search account by this id |
| BxDolAccountQuery::getIdByEmail | ( | $sEmail | ) |
get account id by emial
| BxDolAccountQuery::getIdById | ( | $iId, | |
| $bClearCache = false ) |
get account id by id
| BxDolAccountQuery::getIdByPhone | ( | $sPhone | ) |
get account id by phone
| BxDolAccountQuery::getInfoById | ( | $iID | ) |
Get account info by id
| int | $iID | account id |
|
static |
Get singleton instance of the class
Reimplemented from BxDolDb.
| BxDolAccountQuery::getPassword | ( | $iID | ) |
Get account password by id
| string | $s | search account by this id |
| BxDolAccountQuery::getStudioOperatorId | ( | ) |
get first studio operator id
| BxDolAccountQuery::isOnline | ( | $iId | ) |
Is account online by id
| int | $iId | account id |
| BxDolAccountQuery::lockAccount | ( | $iID | ) |
Lock account
| int | $iID | account id |
| BxDolAccountQuery::logPassword | ( | $iAccountId | ) |
Save password log
| $sPasswordHash | - password hash |
| $sSalt | - pasword salt |
| $iAccountId | - account id to update password for |
| BxDolAccountQuery::searchByTerm | ( | $sTerm, | |
| $iLimit ) |
Search account profile by keyword
| BxDolAccountQuery::unlockAccount | ( | $iID | ) |
Unlock account
| int | $iID | account id |
| BxDolAccountQuery::updateAttemptsCounter | ( | $iID | ) |
Update login attempts counter
| int | $iID | account id |
| BxDolAccountQuery::updateCurrentProfile | ( | $iID, | |
| $iProfileId ) |
Update current profile id associated with account
| int | $iID | account id |
| int | $iProfileId | set current profile id to this value |
| BxDolAccountQuery::updateEmailConfirmed | ( | $isConfirmed, | |
| $iID ) |
Update 'email_confirmed' field.
| int | $isConfirmed | - 0: mark email as unconfirmed, 1: as confirmed |
| int | $iID | - account id |
| BxDolAccountQuery::updateLanguage | ( | $iID, | |
| $iLangId ) |
Update language
| int | $iID | account id |
| BxDolAccountQuery::updateLoggedIn | ( | $iID | ) |
Update last logged in time
| int | $iID | account id |
| BxDolAccountQuery::updatePassword | ( | $sPasswordHash, | |
| $sSalt, | |||
| $iAccountId ) |
Update password
| $sPasswordHash | - password hash |
| $sSalt | - pasword salt |
| $iAccountId | - account id to update password for |
| BxDolAccountQuery::updatePhone | ( | $sPhone, | |
| $iID ) |
Update 'phone' field.
| int | $sPhone | - phone number |
| int | $iID | - account id |
| BxDolAccountQuery::updatePhoneConfirmed | ( | $isConfirmed, | |
| $iID ) |
Update 'phone_confirmed' field.
| int | $isConfirmed | - 0: mark phone as unconfirmed, 1: as confirmed |
| int | $iID | - account id |