Restruct\Silverstripe\AdminTweaks\Jobs\ScheduledMethodCall::schedule
Static method to schedule ScheduledMethodCall
Signature
Parameters
$ObjectOrClass
—
object
- to call method on (if object, will be instantiated as singleton)
$method
—
string
- method to call each time this job gets processed
$description
—
null
- of this job
$when
—
object
- timestamp of when to execute this job (eg strtotime('tomorrow 8:00')
$arguments
—
object
$jobType
—
object
$totalSteps
—
object
$generateRandomSignature
—
object
Returns
- int
- ID of created \Symbiote\QueuedJobs\DataObjects\QueuedJobDescriptor