[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_scheduler/src/Helper/ -> ExecRuleHelper.php (summary)

(no description)

Copyright: (C) 2021 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 135 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ExecRuleHelper:: (4 methods):
  __construct()
  getFromTask()
  nextExec()
  dateTimeToSql()


Class: ExecRuleHelper  - X-Ref

Helper class for supporting task execution rules.

__construct($task)   X-Ref

param: array|object  $task  A task entry

getFromTask(string $property, $default = null)   X-Ref
Get a property from the task array

param: string  $property  The property to get
param: mixed   $default   The default value returned if property does not exist
return: mixed

nextExec(bool $string = true, bool $basisNow = false)   X-Ref

param: boolean  $string    If true, an SQL formatted string is returned.
param: boolean  $basisNow  If true, the current date-time is used as the basis for projecting the next
return: ?Date|string

dateTimeToSql(\DateTime $dateTime)   X-Ref
Returns a sql-formatted string for a DateTime object.
Only needed for DateTime objects returned by CronExpression, JDate supports this as class method.

param: \DateTime  $dateTime  A DateTime object to format
return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer