PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.12
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.12
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-fields.php

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

58 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * A strict interface for Charitable_Fields models.
4 *
5 * @package Charitable/Classes/Charitable_Fields_Interface
6 * @version 1.5.0
7 * @author David Bisset
8 * @copyright Copyright (c) 2023, WP Charitable LLC
9 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
10 */
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 if ( ! class_exists( 'Charitable_Fields_Interface' ) ) :
18
19 /**
20 * Charitable_Fields_Interface
21 *
22 * @since 1.5.0
23 */
24 interface Charitable_Fields_Interface {
25
26 /**
27 * Get the set value for a particular field.
28 *
29 * @since 1.5.0
30 *
31 * @param string $field The field to get a value for.
32 * @return mixed
33 */
34 public function get( $field );
35
36 /**
37 * Check whether a particular field is registered.
38 *
39 * @since 1.5.0
40 *
41 * @param string $field The field to check for.
42 * @return boolean
43 */
44 public function has( $field );
45
46 /**
47 * Check whether a particular field has a callback for getting the value.
48 *
49 * @since 1.5.0
50 *
51 * @param string $field The field to check for.
52 * @return boolean
53 */
54 public function has_value_callback( $field );
55 }
56
57 endif;
58