PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.7.0
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.7.0
1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
hostinger-reach / vendor / woocommerce / action-scheduler / classes / ActionScheduler_LogEntry.php
hostinger-reach / vendor / woocommerce / action-scheduler / classes Last commit date
WP_CLI 9 months ago abstracts 9 months ago actions 9 months ago data-stores 9 months ago migration 9 months ago schedules 9 months ago schema 9 months ago ActionScheduler_ActionClaim.php 9 months ago ActionScheduler_ActionFactory.php 9 months ago ActionScheduler_AdminView.php 9 months ago ActionScheduler_AsyncRequest_QueueRunner.php 9 months ago ActionScheduler_Compatibility.php 9 months ago ActionScheduler_DataController.php 9 months ago ActionScheduler_DateTime.php 9 months ago ActionScheduler_Exception.php 9 months ago ActionScheduler_FatalErrorMonitor.php 9 months ago ActionScheduler_InvalidActionException.php 9 months ago ActionScheduler_ListTable.php 9 months ago ActionScheduler_LogEntry.php 9 months ago ActionScheduler_NullLogEntry.php 9 months ago ActionScheduler_OptionLock.php 9 months ago ActionScheduler_QueueCleaner.php 9 months ago ActionScheduler_QueueRunner.php 9 months ago ActionScheduler_RecurringActionScheduler.php 9 months ago ActionScheduler_SystemInformation.php 9 months ago ActionScheduler_Versions.php 9 months ago ActionScheduler_WPCommentCleaner.php 9 months ago ActionScheduler_wcSystemStatus.php 9 months ago
ActionScheduler_LogEntry.php
79 lines
1 <?php
2
3 /**
4 * Class ActionScheduler_LogEntry
5 */
6 class ActionScheduler_LogEntry {
7
8 /**
9 * Action's ID for log entry.
10 *
11 * @var int $action_id
12 */
13 protected $action_id = '';
14
15 /**
16 * Log entry's message.
17 *
18 * @var string $message
19 */
20 protected $message = '';
21
22 /**
23 * Log entry's date.
24 *
25 * @var Datetime $date
26 */
27 protected $date;
28
29 /**
30 * Constructor
31 *
32 * @param mixed $action_id Action ID.
33 * @param string $message Message.
34 * @param Datetime $date Datetime object with the time when this log entry was created. If this parameter is
35 * not provided a new Datetime object (with current time) will be created.
36 */
37 public function __construct( $action_id, $message, $date = null ) {
38 /*
39 * ActionScheduler_wpCommentLogger::get_entry() previously passed a 3rd param of $comment->comment_type
40 * to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin
41 * hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method,
42 * goodness knows why, so we need to guard against that here instead of using a DateTime type declaration
43 * for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE.
44 */
45 if ( null !== $date && ! is_a( $date, 'DateTime' ) ) {
46 _doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' );
47 $date = null;
48 }
49
50 $this->action_id = $action_id;
51 $this->message = $message;
52 $this->date = $date ? $date : new Datetime();
53 }
54
55 /**
56 * Returns the date when this log entry was created
57 *
58 * @return Datetime
59 */
60 public function get_date() {
61 return $this->date;
62 }
63
64 /**
65 * Get action ID of log entry.
66 */
67 public function get_action_id() {
68 return $this->action_id;
69 }
70
71 /**
72 * Get log entry message.
73 */
74 public function get_message() {
75 return $this->message;
76 }
77 }
78
79