39 $sViewName = getViewName(
"oxarticles", (
int) $this->
getConfig()->getConfigParam(
"sDefaultLang" ) );
40 $sSql =
"select oxpricealarm.*, {$sViewName}.oxtitle AS articletitle, ";
41 $sSql .=
"oxuser.oxlname as userlname, oxuser.oxfname as userfname ";
42 $sSql .=
"from oxpricealarm left join {$sViewName} on {$sViewName}.oxid = oxpricealarm.oxartid ";
43 $sSql .=
"left join oxuser on oxuser.oxid = oxpricealarm.oxuserid WHERE 1 ";
56 $sViewName = getViewName(
"oxpricealarm" );
57 $sArtViewName = getViewName(
"oxarticles" );
60 if ( isset( $this->_aWhere[$sViewName.
'.oxprice'] ) ) {
61 $sPriceParam = (double) str_replace( array(
'%',
',' ), array(
'',
'.' ), $this->_aWhere[$sViewName.
'.oxprice'] );
62 $this->_aWhere[$sViewName.
'.oxprice'] =
'%'. $sPriceParam.
'%';
65 if ( isset( $this->_aWhere[$sArtViewName.
'.oxprice'] ) ) {
66 $sPriceParam = (double) str_replace( array(
'%',
',' ), array(
'',
'.' ), $this->_aWhere[$sArtViewName.
'.oxprice'] );
67 $this->_aWhere[$sArtViewName.
'.oxprice'] =
'%'. $sPriceParam.
'%';