PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.1
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.1
3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / vendor / woocommerce / action-scheduler / classes / schedules / ActionScheduler_SimpleSchedule.php
jetformbuilder / vendor / woocommerce / action-scheduler / classes / schedules Last commit date
ActionScheduler_CanceledSchedule.php 1 year ago ActionScheduler_CronSchedule.php 1 year ago ActionScheduler_IntervalSchedule.php 1 year ago ActionScheduler_NullSchedule.php 1 year ago ActionScheduler_Schedule.php 1 year ago ActionScheduler_SimpleSchedule.php 1 year ago
ActionScheduler_SimpleSchedule.php
82 lines
1 <?php
2
3 /**
4 * Class ActionScheduler_SimpleSchedule
5 */
6 class ActionScheduler_SimpleSchedule extends ActionScheduler_Abstract_Schedule {
7
8 /**
9 * Deprecated property @see $this->__wakeup() for details.
10 *
11 * @var null|DateTime
12 */
13 private $timestamp = null;
14
15 /**
16 * Calculate when this schedule should start after a given date & time using
17 * the number of seconds between recurrences.
18 *
19 * @param DateTime $after Timestamp.
20 *
21 * @return DateTime|null
22 */
23 public function calculate_next( DateTime $after ) {
24 return null;
25 }
26
27 /**
28 * Schedule is not recurring.
29 *
30 * @return bool
31 */
32 public function is_recurring() {
33 return false;
34 }
35
36 /**
37 * Serialize schedule with data required prior to AS 3.0.0
38 *
39 * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
40 * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
41 * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
42 * aligned properties and property names for better inheritance. To guard against the
43 * scheduled date for single actions always being seen as "now" if downgrading to
44 * Action Scheduler < 3.0.0, we need to also store the data with the old property names
45 * so if it's unserialized in AS < 3.0, the schedule doesn't end up with a null recurrence.
46 *
47 * @return array
48 */
49 public function __sleep() {
50
51 $sleep_params = parent::__sleep();
52
53 $this->timestamp = $this->scheduled_timestamp;
54
55 return array_merge(
56 $sleep_params,
57 array(
58 'timestamp',
59 )
60 );
61 }
62
63 /**
64 * Unserialize recurring schedules serialized/stored prior to AS 3.0.0
65 *
66 * Prior to Action Scheduler 3.0.0, schedules used different property names to refer
67 * to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp
68 * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0
69 * aligned properties and property names for better inheritance. To maintain backward
70 * compatibility with schedules serialized and stored prior to 3.0, we need to correctly
71 * map the old property names with matching visibility.
72 */
73 public function __wakeup() {
74
75 if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->timestamp ) ) {
76 $this->scheduled_timestamp = $this->timestamp;
77 unset( $this->timestamp );
78 }
79 parent::__wakeup();
80 }
81 }
82