UNA
|
Public Member Functions | |
__clone () | |
getInfoById ( $iID) | |
getIdByEmail ($sEmail) | |
getIdByPhone ($sPhone) | |
getIdById ($iId, $bClearCache=false) | |
getStudioOperatorId () | |
getEmail ($iID) | |
getPassword ($iID) | |
isOnline ($iId) | |
updatePassword ($sPasswordHash, $sSalt, $iAccountId, $iPasswordExpired) | |
logPassword ($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) | |
Public Member Functions inherited from BxDolDb | |
__clone () | |
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) | |
query ($oStatement, $aBindings=array(), $bVerbose=null) | |
res ($oStatement, $aBindings=array(), $bVerbose=null) | |
getServerInfo () | |
getVersion () | |
listTables () | |
getDbCacheObject () | |
escape ($s) | |
implode_escape ($mixed) | |
unescape ($mixed) | |
prepare ($sQuery) | |
prepareAsString ($sQuery) | |
arrayToSQL ($a, $sDiv=',', $sOperator='=', $bWildcardSpaceChars=false) | |
Static Public Member Functions | |
static | getInstance () |
Static Public Member Functions inherited from BxDolDb | |
static | getInstance () |
Protected Member Functions | |
_getDataByField ($sField, $sValue) | |
_getFieldByField ($sFieldRequested, $sFieldSearch, $sValue) | |
Protected Member Functions inherited from BxDolDb | |
__construct ($aDbConf=false) | |
All queries related to account
BxDolAccountQuery::__clone | ( | ) |
Prevent cloning the instance
|
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
Implements iBxDolSingleton.
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, | |||
$iPasswordExpired | |||
) |
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 |