models/oxpspaymorrowoxpayment.php
public function loadByPaymorrowName($methodName)
    {
        /** @var OxpsPaymorrowOxPayment|oxPayment $this */

        if (!array_key_exists($methodName, $this->paymorrowPaymentNameMap)) {
            return false;
        }

        $query = sprintf(
            "SELECT * FROM `%s` WHERE %s AND `OXPSPAYMORROWMAP` = %d ORDER BY `OXSORT` ASC, `OXTIMESTAMP` DESC LIMIT 1",
            $this->getViewName(),
            $this->getPaymorrowMethodWhereClause(),
            (int) $this->paymorrowPaymentNameMap[$methodName]
        );

        return $this->assignRecord($query);
    }
public function loadByPaymorrowName($methodName)
    {
        /** @var OxpsPaymorrowOxPayment|oxPayment $this */

        if (!array_key_exists($methodName, $this->paymorrowPaymentNameMap)) {
            return false;
        }

        $query = sprintf(
            "SELECT * FROM `%s` WHERE %s AND `OXPSPAYMORROWMAP` = %d ORDER BY `OXSORT` ASC, `OXTIMESTAMP` DESC LIMIT 1",
            $this->getViewName(),
            $this->getPaymorrowMethodWhereClause(),
            (int) $this->paymorrowPaymentNameMap[$methodName]
        );

        return $this->assignRecord($query);
    }
public function loadByPaymorrowName ( $ methodName ) { /** @var OxpsPaymorrowOxPayment|oxPayment $this */ if ( ! array_key_exists ( $ methodName , $ this -> paymorrowPaymentNameMap ) ) { return false ; } $ query = sprintf ( "SELECT * FROM `%s` WHERE %s AND `OXPSPAYMORROWMAP` = %d ORDER BY `OXSORT` ASC, `OXTIMESTAMP` DESC LIMIT 1" , $ this -> getViewName ( ) , $ this -> getPaymorrowMethodWhereClause ( ) , ( int ) $ this -> paymorrowPaymentNameMap [ $ methodName ] ) ; return $ this -> assignRecord ( $ query ) ; }
Load active, mapped Paymorrow payment method by it's name.
E.g. by value "INVOICE" or "SDD".

@param string $methodName

@codeCoverageIgnore

@return bool
Load active mapped Paymorrow payment method by it s name . E . g . by value INVOICE or SDD .