59 $oCaptcha =
oxNew(
'oxCaptcha');
60 if (!$oCaptcha->pass($sMac, $sMacHash)) {
61 $this->_iPriceAlarmStatus = 2;
67 if (!isset($aParams[
'email']) || !$myUtils->isValidEmail($aParams[
'email'])) {
68 $this->_iPriceAlarmStatus = 0;
73 $oCur =
$myConfig->getActShopCurrencyObject();
75 $dPrice = $myUtils->currency2Float($aParams[
'price']);
77 $oAlarm =
oxNew(
"oxpricealarm");
79 $oAlarm->oxpricealarm__oxemail =
new oxField($aParams[
'email']);
80 $oAlarm->oxpricealarm__oxartid =
new oxField($aParams[
'aid']);
81 $oAlarm->oxpricealarm__oxprice =
new oxField($myUtils->fRound($dPrice, $oCur));
83 $oAlarm->oxpricealarm__oxcurrency =
new oxField($oCur->name);
90 $oEmail =
oxNew(
'oxemail');
91 $this->_iPriceAlarmStatus = (int) $oEmail->sendPricealarmNotification($aParams, $oAlarm);
101 if ($this->_sBidPrice === null) {
102 $this->_sBidPrice =
false;
105 $oCur = $this->
getConfig()->getActShopCurrencyObject();
120 if ($this->_oArticle === null) {
121 $this->_oArticle =
false;
123 $oArticle =
oxNew(
'oxarticle');
124 $oArticle->load($aParams[
'aid']);
125 $this->_oArticle = $oArticle;