| 1 |
<?php |
| 2 |
/** |
| 3 |
* Charitable Donation Fields model. |
| 4 |
* |
| 5 |
* @package Charitable/Classes/Charitable_Donation_Fields |
| 6 |
* @author Eric Daams |
| 7 |
* @copyright Copyright (c) 2018, Studio 164a |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.5.0 |
| 10 |
* @version 1.6.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
if ( ! class_exists( 'Charitable_Donation_Fields' ) ) : |
| 19 |
|
| 20 |
/** |
| 21 |
* Charitable_Donation_Fields |
| 22 |
* |
| 23 |
* @deprecated 1.9.0 |
| 24 |
* |
| 25 |
* @since 1.5.0 |
| 26 |
* @since 1.6.0 Deprecated. Use Charitable_Object_Fields instead. |
| 27 |
*/ |
| 28 |
class Charitable_Donation_Fields extends Charitable_Object_Fields { |
| 29 |
|
| 30 |
/** |
| 31 |
* Create class object. |
| 32 |
* |
| 33 |
* @deprecated 1.9.0 |
| 34 |
* |
| 35 |
* @since 1.5.0 |
| 36 |
* @since 1.6.0 Deprecated. Use Charitable_Object_Fields instead. |
| 37 |
* |
| 38 |
* @param Charitable_Field_Registry $registry An instance of `Charitable_Field_Registry`. |
| 39 |
* @param mixed $object The object that will be passed to the value callback. |
| 40 |
*/ |
| 41 |
public function __construct( Charitable_Field_Registry $registry, $object ) { |
| 42 |
parent::__construct( $registry, $object ); |
| 43 |
|
| 44 |
charitable_get_deprecated()->doing_it_wrong( |
| 45 |
'Charitable_Donation_Class', |
| 46 |
__( 'Charitable_Donation_Fields is deprecated as of Charitable 1.6.0. Use Charitable_Object_Fields instead.', 'charitable' ), |
| 47 |
'1.6.0' |
| 48 |
); |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
endif; |
| 53 |
|