| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class ActionScheduler_Store_Deprecated |
| 5 |
* @codeCoverageIgnore |
| 6 |
*/ |
| 7 |
abstract class ActionScheduler_Store_Deprecated { |
| 8 |
|
| 9 |
/** |
| 10 |
* Mark an action that failed to fetch correctly as failed. |
| 11 |
* |
| 12 |
* @since 2.2.6 |
| 13 |
* |
| 14 |
* @param int $action_id The ID of the action. |
| 15 |
*/ |
| 16 |
public function mark_failed_fetch_action( $action_id ) { |
| 17 |
_deprecated_function( __METHOD__, '3.0.0', 'ActionScheduler_Store::mark_failure()' ); |
| 18 |
self::$store->mark_failure( $action_id ); |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* Add base hooks |
| 23 |
* |
| 24 |
* @since 2.2.6 |
| 25 |
*/ |
| 26 |
protected static function hook() { |
| 27 |
_deprecated_function( __METHOD__, '3.0.0' ); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* Remove base hooks |
| 32 |
* |
| 33 |
* @since 2.2.6 |
| 34 |
*/ |
| 35 |
protected static function unhook() { |
| 36 |
_deprecated_function( __METHOD__, '3.0.0' ); |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* Get the site's local time. |
| 41 |
* |
| 42 |
* @deprecated 2.1.0 |
| 43 |
* @return DateTimeZone |
| 44 |
*/ |
| 45 |
protected function get_local_timezone() { |
| 46 |
_deprecated_function( __FUNCTION__, '2.1.0', 'ActionScheduler_TimezoneHelper::set_local_timezone()' ); |
| 47 |
return ActionScheduler_TimezoneHelper::get_local_timezone(); |
| 48 |
} |
| 49 |
} |
| 50 |
|