Author: marijn
Date: 2010-01-11 18:28:42 +0100 (Mon, 11 Jan 2010)
New Revision: 26484
Modified:
plugins/sfPaymentPlugin/branches/1.2-marijn/lib/form/sfPaymentFormAbstract.php
Log:
[sfPaymentPlugin] Removed redundant field from the `sfPaymentForm` class and
reorganized class file.
Modified:
plugins/sfPaymentPlugin/branches/1.2-marijn/lib/form/sfPaymentFormAbstract.php
===================================================================
---
plugins/sfPaymentPlugin/branches/1.2-marijn/lib/form/sfPaymentFormAbstract.php
2010-01-11 17:26:47 UTC (rev 26483)
+++
plugins/sfPaymentPlugin/branches/1.2-marijn/lib/form/sfPaymentFormAbstract.php
2010-01-11 17:28:42 UTC (rev 26484)
@@ -27,11 +27,6 @@
private $_basket;
/**
- * @var string The currency of the bundled sellables.
- */
- private $_currency;
-
- /**
* Payment form constructor.
*
* @param array $arg_gateways The available
gateways.
@@ -110,23 +105,14 @@
}
/**
- * Update a choice field.
- *
- * @return
- */
- private function _updateChoiceField (sfWidgetFormChoice $arg_widget, array
$arg_options)
- {
- $arg_widget->setOption('choices', $arg_options);
-
- return array_keys($arg_options);
- }
-
- /**
* Set the transaction object.
*
- * @param sfTransactionInterface $arg_transaction The transaction
object to use.
+ * @param sfTransactionInterface $arg_transaction The transaction
object
+ * to use
*
- * @return sfPaymentFormAbstract The object itself to
support a fluent interface.
+ * @return sfPaymentFormAbstract The object itself to
+ * support a fluent
+ * interface
*/
public function setTransaction (sfPaymentTransactionInterface
$arg_transaction)
{
@@ -214,6 +200,21 @@
}
/**
+ * Update a choice field.
+ *
+ * @param sfWidgetFormChoice The widget to update
+ *
+ * @return array The keys of the fields that were added
+ */
+ private function _updateChoiceField (sfWidgetFormChoice $arg_widget, array
$arg_choices)
+ {
+ $arg_widget->setOption('choices', $arg_choices);
+
+ return array_keys($arg_options);
+ }
+
+
+ /**
* Filter the gateways.
*
* @param sfTransactionGatewayInterface $arg_gateway A gateway
implementation.
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.