PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 2.1.1
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v2.1.1
4.9.0 0.9.6 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.2 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 2.0.0 2.0.1 2.1.1 2.2.1 2.3.1 2.4.0 2.5.0 2.5.1 2.6.0 2.7.0 2.8.0 2.9.0 3.0.1 3.0.2 3.0.3 3.1.0 3.10.0 3.11.0 3.11.1 3.2.0 3.2.1 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.1 3.7.0 3.8.0 3.8.2 3.9.0 4.0.1 4.1.0 4.1.1 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.8.0 trunk 0.10.0 0.10.1 0.11.1 0.11.2 0.3.1 0.3.2 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.5.2 0.6 0.7 0.8 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5
wp-mail-smtp / vendor / woocommerce / action-scheduler / classes / actions / ActionScheduler_Action.php
wp-mail-smtp / vendor / woocommerce / action-scheduler / classes / actions Last commit date
ActionScheduler_Action.php 6 years ago ActionScheduler_CanceledAction.php 6 years ago ActionScheduler_FinishedAction.php 6 years ago ActionScheduler_NullAction.php 6 years ago
ActionScheduler_Action.php
76 lines
1 <?php
2
3 /**
4 * Class ActionScheduler_Action
5 */
6 class ActionScheduler_Action {
7 protected $hook = '';
8 protected $args = array();
9 /** @var ActionScheduler_Schedule */
10 protected $schedule = NULL;
11 protected $group = '';
12
13 public function __construct( $hook, array $args = array(), ActionScheduler_Schedule $schedule = NULL, $group = '' ) {
14 $schedule = empty( $schedule ) ? new ActionScheduler_NullSchedule() : $schedule;
15 $this->set_hook($hook);
16 $this->set_schedule($schedule);
17 $this->set_args($args);
18 $this->set_group($group);
19 }
20
21 public function execute() {
22 return do_action_ref_array($this->get_hook(), $this->get_args());
23 }
24
25 /**
26 * @param string $hook
27 */
28 protected function set_hook( $hook ) {
29 $this->hook = $hook;
30 }
31
32 public function get_hook() {
33 return $this->hook;
34 }
35
36 protected function set_schedule( ActionScheduler_Schedule $schedule ) {
37 $this->schedule = $schedule;
38 }
39
40 /**
41 * @return ActionScheduler_Schedule
42 */
43 public function get_schedule() {
44 return $this->schedule;
45 }
46
47 protected function set_args( array $args ) {
48 $this->args = $args;
49 }
50
51 public function get_args() {
52 return $this->args;
53 }
54
55 /**
56 * @param string $group
57 */
58 protected function set_group( $group ) {
59 $this->group = $group;
60 }
61
62 /**
63 * @return string
64 */
65 public function get_group() {
66 return $this->group;
67 }
68
69 /**
70 * @return bool If the action has been finished
71 */
72 public function is_finished() {
73 return FALSE;
74 }
75 }
76