Submit
Path:
~
/
/
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
kkart-pro
/
packages
/
action-scheduler
/
classes
/
File Content:
ActionScheduler_LogEntry.php
<?php /** * Class ActionScheduler_LogEntry */ class ActionScheduler_LogEntry { /** * @var int $action_id */ protected $action_id = ''; /** * @var string $message */ protected $message = ''; /** * @var Datetime $date */ protected $date; /** * Constructor * * @param mixed $action_id Action ID * @param string $message Message * @param Datetime $date Datetime object with the time when this log entry was created. If this parameter is * not provided a new Datetime object (with current time) will be created. */ public function __construct( $action_id, $message, $date = null ) { /* * ActionScheduler_wpCommentLogger::get_entry() previously passed a 3rd param of $comment->comment_type * to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin * hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method, * goodness knows why, so we need to guard against that here instead of using a DateTime type declaration * for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE. */ if ( null !== $date && ! is_a( $date, 'DateTime' ) ) { _doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' ); $date = null; } $this->action_id = $action_id; $this->message = $message; $this->date = $date ? $date : new Datetime; } /** * Returns the date when this log entry was created * * @return Datetime */ public function get_date() { return $this->date; } public function get_action_id() { return $this->action_id; } public function get_message() { return $this->message; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
WP_CLI
---
0755
abstracts
---
0755
actions
---
0755
data-stores
---
0755
migration
---
0755
schedules
---
0755
schema
---
0755
ActionScheduler_ActionClaim.php
374 bytes
0644
ActionScheduler_ActionFactory.php
7939 bytes
0644
ActionScheduler_AdminView.php
5161 bytes
0644
ActionScheduler_AsyncRequest_QueueRunner.php
2221 bytes
0644
ActionScheduler_Compatibility.php
3143 bytes
0644
ActionScheduler_DataController.php
5263 bytes
0644
ActionScheduler_DateTime.php
1592 bytes
0644
ActionScheduler_Exception.php
211 bytes
0644
ActionScheduler_FatalErrorMonitor.php
2023 bytes
0644
ActionScheduler_InvalidActionException.php
1255 bytes
0644
ActionScheduler_ListTable.php
19023 bytes
0644
ActionScheduler_LogEntry.php
1764 bytes
0644
ActionScheduler_NullLogEntry.php
219 bytes
0644
ActionScheduler_OptionLock.php
1777 bytes
0644
ActionScheduler_QueueCleaner.php
5140 bytes
0644
ActionScheduler_QueueRunner.php
7530 bytes
0644
ActionScheduler_Versions.php
1263 bytes
0644
ActionScheduler_WPCommentCleaner.php
4392 bytes
0644
ActionScheduler_wcSystemStatus.php
4512 bytes
0644
N4ST4R_ID | Naxtarrr