BackupPluginsNotice.php
2 years ago
BooleanNotice.php
2 years ago
DisabledItemsNotice.php
2 years ago
DismissNotice.php
2 years ago
FreeBackupUpdateNotice.php
2 years ago
Notices.php
2 years ago
ObjectCacheNotice.php
2 years ago
OutdatedWpStagingNotice.php
3 years ago
WarningsNotice.php
2 years ago
ObjectCacheNotice.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Notices; |
| 4 | |
| 5 | /** |
| 6 | * Class ObjectCacheNotice |
| 7 | * |
| 8 | * This class is used to show notice whether object cache has been skipped during restore |
| 9 | * |
| 10 | * @see Notices; |
| 11 | */ |
| 12 | class ObjectCacheNotice extends BooleanNotice |
| 13 | { |
| 14 | /** |
| 15 | * The action name to dismiss this notice |
| 16 | */ |
| 17 | const NOTICE_DISMISS_ACTION = 'object-cache-skipped'; |
| 18 | |
| 19 | /** |
| 20 | * The option name to store the visibility of skipped object cache notice |
| 21 | */ |
| 22 | const OPTION_NAME = 'wpstg_skipped_object_cache_notice'; |
| 23 | |
| 24 | public function getOptionName(): string |
| 25 | { |
| 26 | return self::OPTION_NAME; |
| 27 | } |
| 28 | } |
| 29 |