PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.6.26
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.6.26
1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 1.8.0 All 210 releases
charitable / includes / interfaces / interface-charitable-donation-form.php

interface-charitable-donation-form.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.6.26, at includes/interfaces/interface-charitable-donation-form.php

67 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Donation form interface.
4 *
5 * This defines a strict interface that donation forms must implement.
6 *
7 * @package Charitable/Interfaces/Charitable_Donation_Form_Interface
8 * @author Eric Daams
9 * @copyright Copyright (c) 2019, Studio 164a
10 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11 * @since 1.0.0
12 * @version 1.6.0
13 */
14
15 // Exit if accessed directly.
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 if ( ! interface_exists( 'Charitable_Donation_Form_Interface' ) ) :
21
22 /**
23 * Charitable_Donation_Form_Interface interface.
24 *
25 * @since 1.0.0
26 */
27 interface Charitable_Donation_Form_Interface {
28
29 /**
30 * Render the donation form.
31 *
32 * @since 1.0.0
33 *
34 * @return void
35 */
36 public function render();
37
38 /**
39 * Validate the submitted values.
40 *
41 * @since 1.0.0
42 *
43 * @return boolean
44 */
45 public function validate_submission();
46
47 /**
48 * Return the donation values.
49 *
50 * @since 1.0.0
51 *
52 * @return array
53 */
54 public function get_donation_values();
55
56 /**
57 * Return whether user fields should be hidden.
58 *
59 * @since 1.6.0
60 *
61 * @return boolean
62 */
63 public function should_hide_user_fields();
64 }
65
66 endif;
67