← All changes
|
includes/interfaces/interface-charitable-form-view.php
+56
-54
1.6.9
→
1.8.13
View file →
| @@ -5,71 +5,73 @@ | ||
| 5 | 5 | * This defines a strict interface that donation forms must implement. |
| 6 | 6 | * |
| 7 | 7 | * @version 1.5.0 |
| 8 | 8 | * @package Charitable/Interfaces/Charitable_Form_View_Interface |
| 9 | - * @author Eric Daams | |
| 10 | - * @copyright Copyright (c) 2019, Studio 164a | |
| 9 | + * @author David Bisset | |
| 10 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 11 | 11 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | // Exit if accessed directly. |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 15 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | + exit; | |
| 17 | +} | |
| 16 | 18 | |
| 17 | 19 | if ( ! interface_exists( 'Charitable_Form_View_Interface' ) ) : |
| 18 | 20 | |
| 19 | - /** | |
| 20 | - * Charitable_Form_View_Interface interface. | |
| 21 | - * | |
| 22 | - * @since 1.5.0 | |
| 23 | - */ | |
| 24 | - interface Charitable_Form_View_Interface { | |
| 21 | + /** | |
| 22 | + * Charitable_Form_View_Interface interface. | |
| 23 | + * | |
| 24 | + * @since 1.5.0 | |
| 25 | + */ | |
| 26 | + interface Charitable_Form_View_Interface { | |
| 25 | 27 | |
| 26 | - /** | |
| 27 | - * Render a form. | |
| 28 | - * | |
| 29 | - * @since 1.5.0 | |
| 30 | - * | |
| 31 | - * @return void | |
| 32 | - */ | |
| 33 | - public function render(); | |
| 28 | + /** | |
| 29 | + * Render a form. | |
| 30 | + * | |
| 31 | + * @since 1.5.0 | |
| 32 | + * | |
| 33 | + * @return void | |
| 34 | + */ | |
| 35 | + public function render(); | |
| 34 | 36 | |
| 35 | - /** | |
| 36 | - * Render notices before the form. | |
| 37 | - * | |
| 38 | - * @since 1.5.0 | |
| 39 | - * | |
| 40 | - * @return string | |
| 41 | - */ | |
| 42 | - public function render_notices(); | |
| 37 | + /** | |
| 38 | + * Render notices before the form. | |
| 39 | + * | |
| 40 | + * @since 1.5.0 | |
| 41 | + * | |
| 42 | + * @return string | |
| 43 | + */ | |
| 44 | + public function render_notices(); | |
| 43 | 45 | |
| 44 | - /** | |
| 45 | - * Render a form's hidden fields. | |
| 46 | - * | |
| 47 | - * @since 1.5.0 | |
| 48 | - * | |
| 49 | - * @return boolean True if any fields were rendered. False otherwise. | |
| 50 | - */ | |
| 51 | - public function render_hidden_fields(); | |
| 46 | + /** | |
| 47 | + * Render a form's hidden fields. | |
| 48 | + * | |
| 49 | + * @since 1.5.0 | |
| 50 | + * | |
| 51 | + * @return boolean True if any fields were rendered. False otherwise. | |
| 52 | + */ | |
| 53 | + public function render_hidden_fields(); | |
| 52 | 54 | |
| 53 | - /** | |
| 54 | - * Render all of a form's fields. | |
| 55 | - * | |
| 56 | - * @since 1.5.0 | |
| 57 | - * | |
| 58 | - * @return void | |
| 59 | - */ | |
| 60 | - public function render_fields(); | |
| 55 | + /** | |
| 56 | + * Render all of a form's fields. | |
| 57 | + * | |
| 58 | + * @since 1.5.0 | |
| 59 | + * | |
| 60 | + * @return void | |
| 61 | + */ | |
| 62 | + public function render_fields(); | |
| 61 | 63 | |
| 62 | - /** | |
| 63 | - * Render a specific form fields. | |
| 64 | - * | |
| 65 | - * @since 1.5.0 | |
| 66 | - * | |
| 67 | - * @param array $field Field definition. | |
| 68 | - * @param string $key Field key. | |
| 69 | - * @param array $args Mixed array of arguments. | |
| 70 | - * @return boolean | |
| 71 | - */ | |
| 72 | - public function render_field( $field, $key, $args = array() ); | |
| 73 | - } | |
| 64 | + /** | |
| 65 | + * Render a specific form fields. | |
| 66 | + * | |
| 67 | + * @since 1.5.0 | |
| 68 | + * | |
| 69 | + * @param array $field Field definition. | |
| 70 | + * @param string $key Field key. | |
| 71 | + * @param array $args Mixed array of arguments. | |
| 72 | + * @return boolean | |
| 73 | + */ | |
| 74 | + public function render_field( $field, $key, $args = array() ); | |
| 75 | + } | |
| 74 | 76 | |
| 75 | -endif; // End interface_exists check. | |
| 77 | +endif; // End interface_exists check. | |