PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 3.11.0
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v3.11.0
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 / ActionScheduler_LogEntry.php
wp-mail-smtp / vendor / woocommerce / action-scheduler / classes Last commit date
WP_CLI 2 years ago abstracts 2 years ago actions 2 years ago data-stores 2 years ago migration 2 years ago schedules 2 years ago schema 2 years ago ActionScheduler_ActionClaim.php 2 years ago ActionScheduler_ActionFactory.php 2 years ago ActionScheduler_AdminView.php 2 years ago ActionScheduler_AsyncRequest_QueueRunner.php 2 years ago ActionScheduler_Compatibility.php 2 years ago ActionScheduler_DataController.php 2 years ago ActionScheduler_DateTime.php 2 years ago ActionScheduler_Exception.php 2 years ago ActionScheduler_FatalErrorMonitor.php 2 years ago ActionScheduler_InvalidActionException.php 2 years ago ActionScheduler_ListTable.php 2 years ago ActionScheduler_LogEntry.php 2 years ago ActionScheduler_NullLogEntry.php 2 years ago ActionScheduler_OptionLock.php 2 years ago ActionScheduler_QueueCleaner.php 2 years ago ActionScheduler_QueueRunner.php 2 years ago ActionScheduler_Versions.php 2 years ago ActionScheduler_WPCommentCleaner.php 2 years ago ActionScheduler_wcSystemStatus.php 2 years ago
ActionScheduler_LogEntry.php
68 lines
1 <?php
2
3 /**
4 * Class ActionScheduler_LogEntry
5 */
6 class ActionScheduler_LogEntry {
7
8 /**
9 * @var int $action_id
10 */
11 protected $action_id = '';
12
13 /**
14 * @var string $message
15 */
16 protected $message = '';
17
18 /**
19 * @var Datetime $date
20 */
21 protected $date;
22
23 /**
24 * Constructor
25 *
26 * @param mixed $action_id Action ID
27 * @param string $message Message
28 * @param Datetime $date Datetime object with the time when this log entry was created. If this parameter is
29 * not provided a new Datetime object (with current time) will be created.
30 */
31 public function __construct( $action_id, $message, $date = null ) {
32
33 /*
34 * ActionScheduler_wpCommentLogger::get_entry() previously passed a 3rd param of $comment->comment_type
35 * to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin
36 * hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method,
37 * goodness knows why, so we need to guard against that here instead of using a DateTime type declaration
38 * for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE.
39 */
40 if ( null !== $date && ! is_a( $date, 'DateTime' ) ) {
41 _doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' );
42 $date = null;
43 }
44
45 $this->action_id = $action_id;
46 $this->message = $message;
47 $this->date = $date ? $date : new Datetime;
48 }
49
50 /**
51 * Returns the date when this log entry was created
52 *
53 * @return Datetime
54 */
55 public function get_date() {
56 return $this->date;
57 }
58
59 public function get_action_id() {
60 return $this->action_id;
61 }
62
63 public function get_message() {
64 return $this->message;
65 }
66 }
67
68