PluginProbe
WANotifier for Forms and Actions / 2.7.5
WANotifier for Forms and Actions v2.7.5
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
notifier / libraries / action-scheduler / classes / schedules / ActionScheduler_NullSchedule.php

ActionScheduler_NullSchedule.php in WANotifier for Forms and Actions 2.7.5, at libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php

32 lines 639 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class ActionScheduler_NullSchedule
5 */
6 class ActionScheduler_NullSchedule extends ActionScheduler_SimpleSchedule {
7
8 /** @var DateTime|null */
9 protected $scheduled_date;
10
11 /**
12 * Make the $date param optional and default to null.
13 *
14 * @param null $date The date & time to run the action.
15 */
16 public function __construct( DateTime $date = null ) {
17 $this->scheduled_date = null;
18 }
19
20 /**
21 * This schedule has no scheduled DateTime, so we need to override the parent __sleep()
22 * @return array
23 */
24 public function __sleep() {
25 return array();
26 }
27
28 public function __wakeup() {
29 $this->scheduled_date = null;
30 }
31 }
32