source/Application/Controller/Admin/PriceAlarmList.php
public function buildWhere()
    {
        $this->_aWhere = parent::buildWhere();
        $sViewName = getViewName("oxpricealarm");
        $sArtViewName = getViewName("oxarticles");

        // updating price fields values for correct search in DB
        if (isset($this->_aWhere[$sViewName . '.oxprice'])) {
            $sPriceParam = (double) str_replace(['%', ','], ['', '.'], $this->_aWhere[$sViewName . '.oxprice']);
            $this->_aWhere[$sViewName . '.oxprice'] = '%' . $sPriceParam . '%';
        }

        if (isset($this->_aWhere[$sArtViewName . '.oxprice'])) {
            $sPriceParam = (double) str_replace(['%', ','], ['', '.'], $this->_aWhere[$sArtViewName . '.oxprice']);
            $this->_aWhere[$sArtViewName . '.oxprice'] = '%' . $sPriceParam . '%';
        }

        return $this->_aWhere;
    }
public function buildWhere()
    {
        $this->_aWhere = parent::buildWhere();
        $sViewName = getViewName("oxpricealarm");
        $sArtViewName = getViewName("oxarticles");

        // updating price fields values for correct search in DB
        if (isset($this->_aWhere[$sViewName . '.oxprice'])) {
            $sPriceParam = (double) str_replace(['%', ','], ['', '.'], $this->_aWhere[$sViewName . '.oxprice']);
            $this->_aWhere[$sViewName . '.oxprice'] = '%' . $sPriceParam . '%';
        }

        if (isset($this->_aWhere[$sArtViewName . '.oxprice'])) {
            $sPriceParam = (double) str_replace(['%', ','], ['', '.'], $this->_aWhere[$sArtViewName . '.oxprice']);
            $this->_aWhere[$sArtViewName . '.oxprice'] = '%' . $sPriceParam . '%';
        }

        return $this->_aWhere;
    }
public function buildWhere ( ) { $ this -> _aWhere = parent :: buildWhere ( ) ; $ sViewName = getViewName ( "oxpricealarm" ) ; $ sArtViewName = getViewName ( "oxarticles" ) ; // updating price fields values for correct search in DB if ( isset ( $ this -> _aWhere [ $ sViewName . '.oxprice' ] ) ) { $ sPriceParam = ( double ) str_replace ( [ '%' , ',' ] , [ '' , '.' ] , $ this -> _aWhere [ $ sViewName . '.oxprice' ] ) ; $ this -> _aWhere [ $ sViewName . '.oxprice' ] = '%' . $ sPriceParam . '%' ; } if ( isset ( $ this -> _aWhere [ $ sArtViewName . '.oxprice' ] ) ) { $ sPriceParam = ( double ) str_replace ( [ '%' , ',' ] , [ '' , '.' ] , $ this -> _aWhere [ $ sArtViewName . '.oxprice' ] ) ; $ this -> _aWhere [ $ sArtViewName . '.oxprice' ] = '%' . $ sPriceParam . '%' ; } return $ this -> _aWhere ; }
Builds and returns array of SQL WHERE conditions

@return array
Builds and returns array of SQL WHERE conditions