https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102051
Revision: 102051
Author: jpostlethwaite
Date: 2011-11-04 21:37:27 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Added helper: getPaymentSubmethodFormValidation().
Modified Paths:
--------------
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
Modified:
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
===================================================================
---
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
2011-11-04 21:36:45 UTC (rev 102050)
+++
trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
2011-11-04 21:37:27 UTC (rev 102051)
@@ -693,6 +693,21 @@
}
/**
+ * Get payment submethod form validation options
+ *
+ * @todo
+ * - These may need to move to the parent class
+ *
+ * @return array
+ */
+ public function getPaymentSubmethodFormValidation( $options = array() )
{
+
+ $meta = $this->getPaymentSubmethodMeta(
$this->getPaymentSubmethod() );
+
+ return $meta['validation'];
+ }
+
+ /**
* Because GC has some processes that involve more than one
do_transaction
* chained together, we're catching those special ones in an overload
and
* letting the rest behave normally.
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs