Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
give
/
src
/
DonationForms
/
AsyncData
/
AdminFormListView
:
AdminFormListView.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Give\DonationForms\AsyncData\AdminFormListView; use Give\DonationForms\AsyncData\AsyncDataHelpers; /** * @since 3.16.0 */ class AdminFormListView { /** * @since 3.16.0 */ public function maybeChangeAchievedIconOpacity($achievedIconOpacity) { if (AdminFormListViewOptions::isGoalColumnAsync()) { $achievedIconOpacity = 0; } return $achievedIconOpacity; } /** * @since 3.16.0 */ public function maybeUsePlaceholderOnGoalAmountRaised(bool $usePlaceholder = false): bool { if (AdminFormListViewOptions::isGoalColumnAsync()) { $usePlaceholder = true; } return $usePlaceholder; } /** * @since 3.16.0 */ public function maybeSetDonationsColumnAsync($donationsCountCachedValue, $formId) { if (AdminFormListViewOptions::isDonationColumnAsync()) { return AsyncDataHelpers::getSkeletonPlaceholder('1rem'); } if (AdminFormListViewOptions::useCachedMetaKeys()) { return $donationsCountCachedValue; } return AsyncDataHelpers::getFormDonationsCountValue($formId); } /** * @since 3.16.0 */ public function maybeSetRevenueColumnAsync($revenueCachedValue, $formId) { if (AdminFormListViewOptions::isRevenueColumnAsync()) { return AsyncDataHelpers::getSkeletonPlaceholder('1rem'); } if (AdminFormListViewOptions::useCachedMetaKeys()) { return $revenueCachedValue; } $revenue = AsyncDataHelpers::getFormRevenueValue($formId); return give_currency_filter(give_format_amount($revenue)); } }