Documentation

pm_LongTask_Manager
in package

Manager of long tasks.

Tags
since
17.0

Table of Contents

__construct()  : mixed
cancel()  : mixed
Cancel task and delete it
cancelAllTasks()  : void
Cancel all extension tasks and delete them
getTasks()  : array<string|int, pm_LongTask_Task>
Get task queue filtered by ID and context
start()  : pm_LongTask_Task
Start task execution

Methods

__construct()

public __construct() : mixed
Return values
mixed

cancelAllTasks()

Cancel all extension tasks and delete them

public cancelAllTasks() : void
Return values
void

getTasks()

Get task queue filtered by ID and context

public getTasks(array<string|int, string> $ids[, array<string|int, pm_Domain>|null $domains = null ]) : array<string|int, pm_LongTask_Task>
Parameters
$ids : array<string|int, string>

Task IDs

$domains : array<string|int, pm_Domain>|null = null

Domain contexts or null for task without any context

Return values
array<string|int, pm_LongTask_Task>

Task queue

Search results