controllers/admin/oxpspaymorrowpaymentmap.php
protected function _setDuplicatedField( $oPayment, $sFieldName, $sType, $aParams, $sField )
    {
        $mValue = $aParams[$sField];
        settype( $mValue, $sType );

        if ( ( $sFieldName == 'oxaddsumtype' ) and !in_array( $mValue, array('abs', '%') ) ) {
            return false;
        }

        $oPayment->$sField = new oxField( $mValue );

        return true;
    }
protected function _setDuplicatedField( $oPayment, $sFieldName, $sType, $aParams, $sField )
    {
        $mValue = $aParams[$sField];
        settype( $mValue, $sType );

        if ( ( $sFieldName == 'oxaddsumtype' ) and !in_array( $mValue, array('abs', '%') ) ) {
            return false;
        }

        $oPayment->$sField = new oxField( $mValue );

        return true;
    }
protected function _setDuplicatedField ( $ oPayment , $ sFieldName , $ sType , $ aParams , $ sField ) { $ mValue = $ aParams [ $ sField ] ; settype ( $ mValue , $ sType ) ; if ( ( $ sFieldName == 'oxaddsumtype' ) and ! in_array ( $ mValue , array ( 'abs' , '%' ) ) ) { return false ; } $ oPayment -> $ sField = new oxField ( $ mValue ) ; return true ; }
Check if field if valid and ok to set a value.

@param OxpsPaymorrowOxPayment|oxPayment $oPayment
@param string                           $sFieldName
@param string                           $sType
@param array                            $aParams
@param string                           $sField

@return bool
Check if field if valid and ok to set a value .