Go to the documentation of this file.
16 parent::__construct($oConfig);
18 $this -> sTablePrefix = $oConfig -> getDbPrefix();
29 $iRemoteId = (int) $iRemoteId;
31 $sQuery =
"SELECT `local_profile` FROM `{$this -> sTablePrefix}accounts` WHERE `remote_profile` = '{$iRemoteId}' LIMIT 1";
32 return $this ->
getOne($sQuery);
44 $iRemoteId = (int) $iRemoteId;
47 $sQuery =
"REPLACE INTO `{$this -> sTablePrefix}accounts` SET `local_profile` = {$iProfileId}, `remote_profile` = '{$iRemoteId}'";
48 return $this ->
query($sQuery);
61 $sQuery =
"DELETE FROM `{$this -> sTablePrefix}accounts` WHERE `local_profile` = {$iProfileId}";
62 return $this ->
query($sQuery);
77 $sQuery =
"INSERT INTO `sys_friend_list` SET `ID` = '{$iMemberId}', `Profile` = '{$iProfileId}', `Check` = 1";
78 return $this ->
query($sQuery);
92 foreach($aProfileFields
as $sKey => $mValue) {
95 $sFields .=
"`{$sKey}` = '{$mValue}', ";
98 $sFields = preg_replace(
'/,$/',
'', trim($sFields) );
100 $sQuery =
"INSERT INTO `Profiles` SET {$sFields}";
101 $this ->
query($sQuery);
118 $sQuery =
"UPDATE `Profiles` SET `Status` = '{$sStatus}' WHERE `ID` = {$iProfileId}";
119 return $this ->
query($sQuery);
132 $sQuery =
"SELECT `ID` FROM `sys_profile_fields` WHERE `Name` = '{$sFieldName}' LIMIT 1";
133 return $this ->
getOne($sQuery) ?
true :
false;
146 $sQuery =
"SELECT `ID` FROM `Profiles` WHERE `Email` = '{$sEmail}'";
147 return $this ->
getOne($sQuery);
159 $sQuery =
"SELECT `ISO2` FROM `sys_countries` WHERE `Country` = '{$sCountry}' LIMIT 1";
160 return $this ->
getOne($sQuery);
process_db_input($sText, $iStripTags=0)
if(!defined("TRUE_VAL")) define("TRUE_VAL" true
updateProfileStatus($iProfileId, $sStatus)
deleteRemoteAccount($iProfileId)
ch_import($sClassName, $aModule=array())
const CH_SLASHES_NO_ACTION
saveRemoteId($iProfileId, $iRemoteId)
query($sQuery, $aBindings=[])
createProfile(&$aProfileFields)
getOne($sQuery, $aBindings=[], $iIndex=0)
getCountryCode($sCountry)
makeFriend($iMemberId, $iProfileId)
if( $sMembersList) $iProfileId
isFieldExist($sFieldName)