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 / ActionScheduler_LogEntry.php
jetformbuilder / vendor / woocommerce / action-scheduler / classes Last commit date
WP_CLI 1 month ago abstracts 1 month ago actions 1 year ago data-stores 1 month ago migration 1 year ago schedules 1 year ago schema 1 month ago ActionScheduler_ActionClaim.php 1 year ago ActionScheduler_ActionFactory.php 1 year ago ActionScheduler_AdminView.php 1 year ago ActionScheduler_AsyncRequest_QueueRunner.php 1 year ago ActionScheduler_Compatibility.php 1 year ago ActionScheduler_DataController.php 1 month ago ActionScheduler_DateTime.php 1 year ago ActionScheduler_Exception.php 2 years ago ActionScheduler_FatalErrorMonitor.php 1 year ago ActionScheduler_InvalidActionException.php 1 year ago ActionScheduler_ListTable.php 1 year ago ActionScheduler_LogEntry.php 1 year ago ActionScheduler_NullLogEntry.php 1 year ago ActionScheduler_OptionLock.php 1 year ago ActionScheduler_QueueCleaner.php 1 year ago ActionScheduler_QueueRunner.php 1 year ago ActionScheduler_RecurringActionScheduler.php 1 month ago ActionScheduler_SystemInformation.php 1 year ago ActionScheduler_Versions.php 1 year ago ActionScheduler_WPCommentCleaner.php 1 year ago ActionScheduler_wcSystemStatus.php 1 month 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