source/Application/Model/PriceAlarm.php
public function getPriceAlarmStatus()
    {
        if ($this->_iStatus == null) {
            // neutral status
            $this->_iStatus = 0;

            // shop price is less or equal
            $dArtPrice = $this->getPrice();
            if ($this->oxpricealarm__oxprice->value >= $dArtPrice) {
                $this->_iStatus = 1;
            }

            // suggestion to user is sent
            if ($this->oxpricealarm__oxsended->value != "0000-00-00 00:00:00") {
                $this->_iStatus = 2;
            }
        }

        return $this->_iStatus;
    }
public function getPriceAlarmStatus()
    {
        if ($this->_iStatus == null) {
            // neutral status
            $this->_iStatus = 0;

            // shop price is less or equal
            $dArtPrice = $this->getPrice();
            if ($this->oxpricealarm__oxprice->value >= $dArtPrice) {
                $this->_iStatus = 1;
            }

            // suggestion to user is sent
            if ($this->oxpricealarm__oxsended->value != "0000-00-00 00:00:00") {
                $this->_iStatus = 2;
            }
        }

        return $this->_iStatus;
    }
public function getPriceAlarmStatus ( ) { if ( $ this -> _iStatus == null ) { // neutral status $ this -> _iStatus = 0 ; // shop price is less or equal $ dArtPrice = $ this -> getPrice ( ) ; if ( $ this -> oxpricealarm__oxprice -> value >= $ dArtPrice ) { $ this -> _iStatus = 1 ; } // suggestion to user is sent if ( $ this -> oxpricealarm__oxsended -> value != "0000-00-00 00:00:00" ) { $ this -> _iStatus = 2 ; } } return $ this -> _iStatus ; }
Returns pricealarm status

@return integer
Returns pricealarm status