Index: trunk/extensions/DonationInterface/gateway_common/GatewayForm.php |
— | — | @@ -1,5 +1,25 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * Wikimedia Foundation |
| 5 | + * |
| 6 | + * LICENSE |
| 7 | + * |
| 8 | + * This program is free software; you can redistribute it and/or modify |
| 9 | + * it under the terms of the GNU General Public License as published by |
| 10 | + * the Free Software Foundation; either version 2 of the License, or |
| 11 | + * (at your option) any later version. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, |
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + * GNU General Public License for more details. |
| 17 | + * |
| 18 | + */ |
3 | 19 | |
| 20 | +/** |
| 21 | + * GatewayForm |
| 22 | + * |
| 23 | + */ |
4 | 24 | class GatewayForm extends UnlistedSpecialPage { |
5 | 25 | |
6 | 26 | /** |
— | — | @@ -26,12 +46,17 @@ |
27 | 47 | |
28 | 48 | /** |
29 | 49 | * An array of form errors |
30 | | - * @var array |
| 50 | + * @var array $errors |
31 | 51 | */ |
32 | 52 | public $errors = array( ); |
33 | | - public $adapter; //the adapter goes here. |
34 | 53 | |
35 | 54 | /** |
| 55 | + * The adapter object |
| 56 | + * @var object $adapter |
| 57 | + */ |
| 58 | + public $adapter; |
| 59 | + |
| 60 | + /** |
36 | 61 | * The form is assumed to be successful. Errors in the form must set this to |
37 | 62 | * false. |
38 | 63 | * |
— | — | @@ -39,7 +64,11 @@ |
40 | 65 | */ |
41 | 66 | public $validateFormResult = true; |
42 | 67 | |
43 | | - function __construct() { |
| 68 | + |
| 69 | + /** |
| 70 | + * Constructor |
| 71 | + */ |
| 72 | + public function __construct() { |
44 | 73 | $me = get_called_class(); |
45 | 74 | parent::__construct( $me ); |
46 | 75 | $this->errors = $this->getPossibleErrors(); |