Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204008
Change subject: Document Handlebars rendering class
......................................................................
Document Handlebars rendering class
Change-Id: I5c2548fa3889292a791d0ac55cb5e8d0e743acbf
---
M gateway_forms/Handlebars.php
1 file changed, 14 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/08/204008/1
diff --git a/gateway_forms/Handlebars.php b/gateway_forms/Handlebars.php
index 5e3497e..f984889 100644
--- a/gateway_forms/Handlebars.php
+++ b/gateway_forms/Handlebars.php
@@ -1,8 +1,19 @@
<?php
+/**
+ * Gateway form rendering using Handlebars
+ */
class Gateway_Form_Handlebars extends Gateway_Form {
+ /**
+ * @var string Janky way to keep track of the template file path that
will
+ * be used as the main entry point for rendering.
+ */
protected $topLevelForm;
+ /**
+ * @param GatewayAdapter $gateway The live adapter object that is used
as
+ * the source for donor data and capabilities discovery.
+ */
public function __construct( GatewayAdapter $gateway ) {
parent::__construct( $gateway );
@@ -12,7 +23,9 @@
}
/**
- * Return the HTML form with data added
+ * Return the rendered HTML form, using template parameters from the
gateway object
+ *
+ * @return string
*/
public function getForm() {
$data = $this->gateway->getData_Unstaged_Escaped();
--
To view, visit https://gerrit.wikimedia.org/r/204008
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c2548fa3889292a791d0ac55cb5e8d0e743acbf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits