PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / trunk
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder vtrunk
6.2.15 6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 All 197 releases
fluentform / app / Services / Libraries / action-scheduler / classes / schedules / ActionScheduler_CanceledSchedule.php

ActionScheduler_CanceledSchedule.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder trunk, at app/Services/Libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php

64 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class ActionScheduler_SimpleSchedule
5 */
6 class ActionScheduler_CanceledSchedule extends ActionScheduler_SimpleSchedule {
7
8 /**
9 * Deprecated property @see $this->__wakeup() for details.
10 *
11 * @var null
12 */
13 private $timestamp = null;
14
15 /**
16 * Calculate when the next instance of this schedule would run based on a given date & time.
17 *
18 * @param DateTime $after Timestamp.
19 *
20 * @return DateTime|null
21 */
22 public function calculate_next( DateTime $after ) {
23 return null;
24 }
25
26 /**
27 * Cancelled actions should never have a next schedule, even if get_next()
28 * is called with $after < $this->scheduled_date.
29 *
30 * @param DateTime $after Timestamp.
31 * @return DateTime|null
32 */
33 public function get_next( DateTime $after ) {
34 return null;
35 }
36
37 /**
38 * Action is not recurring.
39 *
40 * @return bool
41 */
42 public function is_recurring() {
43 return false;
44 }
45
46 /**
47 * Unserialize recurring schedules serialized/stored prior to AS 3.0.0
48 *
49 * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
50 * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
51 * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
52 * aligned properties and property names for better inheritance. To maintain backward
53 * compatibility with schedules serialized and stored prior to 3.0, we need to correctly
54 * map the old property names with matching visibility.
55 */
56 public function __wakeup() {
57 if ( ! is_null( $this->timestamp ) ) {
58 $this->scheduled_timestamp = $this->timestamp;
59 unset( $this->timestamp );
60 }
61 parent::__wakeup();
62 }
63 }
64