54 $oCaptcha =
oxNew(
'oxCaptcha');
55 if ( !$oCaptcha->pass( $sMac, $sMacHash )) {
56 $this->_iPriceAlarmStatus = 2;
61 if ( !isset( $aParams[
'email'] ) || !$myUtils->isValidEmail( $aParams[
'email'] ) ) {
62 $this->_iPriceAlarmStatus = 0;
66 $oCur =
$myConfig->getActShopCurrencyObject();
68 $dPrice = $myUtils->currency2Float( $aParams[
'price'] );
70 $oAlarm =
oxNew(
"oxpricealarm" );
72 $oAlarm->oxpricealarm__oxemail =
new oxField( $aParams[
'email']);
73 $oAlarm->oxpricealarm__oxartid =
new oxField( $aParams[
'aid']);
74 $oAlarm->oxpricealarm__oxprice =
new oxField( $myUtils->fRound( $dPrice, $oCur ));
76 $oAlarm->oxpricealarm__oxcurrency =
new oxField( $oCur->name);
83 $oEmail =
oxNew(
'oxemail' );
84 $this->_iPriceAlarmStatus = (int) $oEmail->sendPricealarmNotification( $aParams, $oAlarm );
94 if ( $this->_sBidPrice === null ) {
95 $this->_sBidPrice =
false;
98 $oCur = $this->
getConfig()->getActShopCurrencyObject();
112 if ( $this->_oArticle === null ) {
113 $this->_oArticle =
false;
115 $oArticle =
oxNew(
'oxarticle' );
116 $oArticle->load( $aParams[
'aid'] );
117 $this->_oArticle = $oArticle;