X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FManual.php;h=55bae03df26b461a16284010b8b96b2bcd836a3c;hb=923161663e1c6437982cf8333dbfaeac9b359abc;hp=ecc3c92520042f31815fa12c7ba231cebf0f68e2;hpb=ff041a94c0174e3b2539431aa4077c5a7388f0ff;p=civicrm-core.git diff --git a/CRM/Core/Payment/Manual.php b/CRM/Core/Payment/Manual.php index ecc3c92520..55bae03df2 100644 --- a/CRM/Core/Payment/Manual.php +++ b/CRM/Core/Payment/Manual.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 */ class CRM_Core_Payment_Manual extends CRM_Core_Payment { @@ -137,6 +137,15 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment { $this->result = $result; } + /** + * Set payment instrument id. + * + * @param int $paymentInstrumentID + */ + public function setPaymentInstrumentID($paymentInstrumentID) { + $this->paymentInstrumentID = $paymentInstrumentID; + } + /** * Get the name of the payment type. * @@ -173,6 +182,15 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment { return TRUE; } + /** + * Are back office payments supported. + * + * @return bool + */ + protected function supportsBackOffice() { + return TRUE; + } + /** * Submit a manual payment. *