source/Application/Model/PaymentList.php
public function loadRDFaPaymentList($dPrice = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
        $sTable = getViewName('oxpayments');
        $sQ = "select $sTable.*, oxobject2payment.oxobjectid from $sTable left join (select oxobject2payment.* from oxobject2payment where oxobject2payment.oxtype = 'rdfapayment') as oxobject2payment on oxobject2payment.oxpaymentid=$sTable.oxid ";
        $sQ .= "where $sTable.oxactive = 1 ";
        if ($dPrice !== null) {
            $sQ .= "and $sTable.oxfromamount <= " . $oDb->quote($dPrice) . " and $sTable.oxtoamount >= " . $oDb->quote($dPrice);
        }
        $rs = $oDb->select($sQ);
        if ($rs != false && $rs->count() > 0) {
            $oSaved = clone $this->getBaseObject();
            while (!$rs->EOF) {
                $oListObject = clone $oSaved;
                $this->_assignElement($oListObject, $rs->fields);
                $this->_aArray[] = $oListObject;
                $rs->fetchRow();
            }
        }
    }
public function loadRDFaPaymentList($dPrice = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
        $sTable = getViewName('oxpayments');
        $sQ = "select $sTable.*, oxobject2payment.oxobjectid from $sTable left join (select oxobject2payment.* from oxobject2payment where oxobject2payment.oxtype = 'rdfapayment') as oxobject2payment on oxobject2payment.oxpaymentid=$sTable.oxid ";
        $sQ .= "where $sTable.oxactive = 1 ";
        if ($dPrice !== null) {
            $sQ .= "and $sTable.oxfromamount <= " . $oDb->quote($dPrice) . " and $sTable.oxtoamount >= " . $oDb->quote($dPrice);
        }
        $rs = $oDb->select($sQ);
        if ($rs != false && $rs->count() > 0) {
            $oSaved = clone $this->getBaseObject();
            while (!$rs->EOF) {
                $oListObject = clone $oSaved;
                $this->_assignElement($oListObject, $rs->fields);
                $this->_aArray[] = $oListObject;
                $rs->fetchRow();
            }
        }
    }
public function loadRDFaPaymentList ( $ dPrice = null ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: FETCH_MODE_ASSOC ) ; $ sTable = getViewName ( 'oxpayments' ) ; $ sQ = "select $sTable.*, oxobject2payment.oxobjectid from $sTable left join (select oxobject2payment.* from oxobject2payment where oxobject2payment.oxtype = 'rdfapayment') as oxobject2payment on oxobject2payment.oxpaymentid=$sTable.oxid " ; $ sQ .= "where $sTable.oxactive = 1 " ; if ( $ dPrice !== null ) { $ sQ .= "and $sTable.oxfromamount <= " . $ oDb -> quote ( $ dPrice ) . " and $sTable.oxtoamount >= " . $ oDb -> quote ( $ dPrice ) ; } $ rs = $ oDb -> select ( $ sQ ) ; if ( $ rs != false && $ rs -> count ( ) > 0 ) { $ oSaved = clone $ this -> getBaseObject ( ) ; while ( ! $ rs -> EOF ) { $ oListObject = clone $ oSaved ; $ this -> _assignElement ( $ oListObject , $ rs -> fields ) ; $ this -> _aArray [ ] = $ oListObject ; $ rs -> fetchRow ( ) ; } } }
Loads payments mapped to a
predefined GoodRelations payment method.

@param double $dPrice product price
Loads payments mapped to a predefined GoodRelations payment method .