\Pydio\TasksSchedule

Class Schedule

Summary

Methods
Properties
Constants
__construct()
shouldRunNow()
scheduleNow()
scheduleDeferred()
scheduleRecurring()
getType()
getValue()
fromJson()
jsonSerialize()
No public properties found
TYPE_RECURRENT
TYPE_ONCE_NOW
TYPE_ONCE_DEFER
No protected methods found
No protected properties found
N/A
No private methods found
$type
$value
N/A

Constants

TYPE_RECURRENT

TYPE_RECURRENT

TYPE_ONCE_NOW

TYPE_ONCE_NOW

TYPE_ONCE_DEFER

TYPE_ONCE_DEFER

Properties

$type

$type : integer

Type

integer

$value

$value : string

Type

string

Methods

__construct()

__construct(  $type, string  $value = "") 

Schedule constructor.

Parameters

$type
string $value

shouldRunNow()

shouldRunNow(integer  $recurringTimeInterval) : boolean

Detect if a task should run now

Parameters

integer $recurringTimeInterval

Returns

boolean

scheduleRecurring()

scheduleRecurring(  $recurringDescriptor) : \Pydio\Tasks\Schedule

Parameters

$recurringDescriptor

Returns

\Pydio\Tasks\Schedule

getType()

getType() : integer

Returns

integer

getValue()

getValue() : string

Returns

string

jsonSerialize()

jsonSerialize() : mixed

Specify data which should be serialized to JSON

Returns

mixed —

data which can be serialized by json_encode, which is a value of any type other than a resource.