| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\DonationForms\AsyncData\FormGrid; |
| 4 |
|
| 5 |
/** |
| 6 |
* @since 3.16.0 |
| 7 |
*/ |
| 8 |
class FormGridViewOptions |
| 9 |
{ |
| 10 |
/** |
| 11 |
* @since 3.16.0 |
| 12 |
*/ |
| 13 |
public static function isAllProgressBarStatsAsync(): bool |
| 14 |
{ |
| 15 |
if ( ! defined('GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID')) { |
| 16 |
define("GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID", true); |
| 17 |
} |
| 18 |
|
| 19 |
return (bool)GIVE_IS_ALL_PROGRESS_BAR_STATS_ASYNC_ON_FORM_GRID; |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* @since 3.16.0 |
| 24 |
*/ |
| 25 |
public static function isProgressBarAmountRaisedAsync(): bool |
| 26 |
{ |
| 27 |
if (defined('GIVE_IS_PROGRESS_BAR_AMOUNT_RAISED_ASYNC_ON_FORM_GRID')) { |
| 28 |
return (bool)GIVE_IS_PROGRESS_BAR_AMOUNT_RAISED_ASYNC_ON_FORM_GRID; |
| 29 |
} |
| 30 |
|
| 31 |
return self::isAllProgressBarStatsAsync(); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* @since 3.16.0 |
| 36 |
*/ |
| 37 |
public static function isProgressBarDonationsCountAsync(): bool |
| 38 |
{ |
| 39 |
if (defined('GIVE_IS_PROGRESS_BAR_DONATIONS_COUNT_ASYNC_ON_FORM_GRID')) { |
| 40 |
return (bool)GIVE_IS_PROGRESS_BAR_DONATIONS_COUNT_ASYNC_ON_FORM_GRID; |
| 41 |
} |
| 42 |
|
| 43 |
return self::isAllProgressBarStatsAsync(); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* @since 3.16.0 |
| 48 |
*/ |
| 49 |
public static function useCachedMetaKeys() |
| 50 |
{ |
| 51 |
return apply_filters('givewp_use_cached_form_stats_meta_keys_on_form_grid', false); |
| 52 |
} |
| 53 |
} |
| 54 |
|