r98483 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98482‎ | r98483 | r98484 >
Date:22:51, 29 September 2011
Author:jpostlethwaite
Status:ok
Tags:fundraising 
Comment:
Added documentation on $options parameter.
Modified paths:
  • /branches/fundraising/extensions/DonationInterface/gateway_common/GatewayForm.php (modified) (history)

Diff [purge]

Index: branches/fundraising/extensions/DonationInterface/gateway_common/GatewayForm.php
@@ -123,6 +123,13 @@
124124 *
125125 * @param array $data Reference to the data of the form
126126 * @param array $error Reference to the error messages of the form
 127+ * @param array $options
 128+ * OPTIONAL - You may require certain field groups to be validated
 129+ * - address - Validates: street, city,, state, zip
 130+ * - amount - Validates: amount
 131+ * - creditCard - Validates: card_num, cvv, expiration and sets the card
 132+ * - email - Validates: email - NOTE: part of this validation is disabled
 133+ * - name - Validates: fname, lname
127134 *
128135 * @return 0|1 Returns 0 on success and 1 on failure
129136 *

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98476Added GatewayForm::validateForm() so certain elements can be validated. The o...jpostlethwaite22:19, 29 September 2011

Status & tagging log