Go to the documentation of this file.
8 require_once( CH_DIRECTORY_PATH_INC .
"match.inc.php");
17 $iRecipientId =
$oAlert->iObject;
19 if (
$oAlert->sUnit ==
'profile') {
48 $oDb->query(
"UPDATE `Profiles` SET `UpdateMatch` = 0 WHERE `ID`= $iProfileId");
51 $oDb->query(
"DELETE FROM `sys_profiles_match`");
54 $aSendMails =
$oDb->getRow(
"SELECT `profiles_match` FROM `sys_profiles_match_mails` WHERE `profile_id` = ?", [
$iProfileId]);
55 $aSend = !
empty($aSendMails) ? unserialize($aSendMails[
'profiles_match']) : array();
67 $aMessage = $oEmailTemplate->parseTemplate(
't_CupidMail', array(
78 if (
empty($aSendMails))
79 $oDb->query(
"INSERT INTO `sys_profiles_match_mails`(`profile_id`, `profiles_match`) VALUES($iProfileId, '" . serialize($aSend) .
"')");
81 $oDb->query(
"UPDATE `sys_profiles_match_mails` SET `profiles_match` = '" . serialize($aSend) .
"' WHERE `profile_id` = $iProfileId");
89 $oDb->query(
"DELETE FROM `sys_profiles_match`");
90 $oDb->query(
"DELETE FROM `sys_profiles_match_mails` WHERE `profile_id` = $iProfileId");
96 $oDb->query(
"DELETE FROM `sys_profiles_match`");
process_db_input($sText, $iStripTags=0)
ch_import($sClassName, $aModule=array())
const CH_SLASHES_NO_ACTION
_profileDelete($iProfileId)
getParam($sParamName, $bUseCache=true)
getMatchProfiles($iProfileId, $bForce=false, $sSort='none')
getProfileLink( $iID, $sLinkAdd='')
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
_checkProfileMatch($iProfileId, $sAction)
Attr AllowedRel this is empty
if( $sMembersList) $iProfileId