Properties

Methods

enqueueTask()

enqueueTask(\Pydio\Tasks\Task  $task, \Psr\Http\Message\ServerRequestInterface|null  $request = null, \Psr\Http\Message\ResponseInterface|null  $response = null) : \Psr\Http\Message\ResponseInterface|null

Parameters

\Pydio\Tasks\Task $task
\Psr\Http\Message\ServerRequestInterface|null $request
\Psr\Http\Message\ResponseInterface|null $response

Throws

\Pydio\Core\Exception\ActionNotFoundException
\Pydio\Core\Exception\AuthRequiredException

Returns

\Psr\Http\Message\ResponseInterface|null

actionAsTask()

actionAsTask(\Pydio\Core\Model\ContextInterface  $ctx,   $actionName,   $parameters, array  $nodePathes = array(), integer  $flags) : \Pydio\Tasks\Task

Parameters

\Pydio\Core\Model\ContextInterface $ctx
$actionName
$parameters
array $nodePathes
integer $flags

Returns

\Pydio\Tasks\Task

updateTaskStatus()

updateTaskStatus(string  $taskId, integer  $status, string  $message, boolean|null  $stoppable = null, integer|null  $progress = null) : \Pydio\Tasks\Task

Parameters

string $taskId
integer $status
string $message
boolean|null $stoppable
integer|null $progress

Throws

\Pydio\Core\Exception\PydioException

Returns

\Pydio\Tasks\Task

getTaskById()

getTaskById(string  $taskId) : \Pydio\Tasks\Task

Parameters

string $taskId

Returns

\Pydio\Tasks\Task

deleteTask()

deleteTask(string  $taskId) : boolean

Parameters

string $taskId

Returns

boolean

getPendingTasks()

getPendingTasks() : array<mixed,\Pydio\Tasks\Task>

Returns

array<mixed,\Pydio\Tasks\Task>

getTasks()

getTasks(\Pydio\Core\Model\UserInterface  $user = null, \Pydio\Core\Model\RepositoryInterface  $repository = null, integer  $status = -1, integer  $scheduleType = -1, integer  $taskType = \Pydio\Tasks\Task::TYPE_USER, string  $parentUid = "") : array<mixed,\Pydio\Tasks\Task>

Parameters

\Pydio\Core\Model\UserInterface $user
\Pydio\Core\Model\RepositoryInterface $repository
integer $status
integer $scheduleType
integer $taskType
string $parentUid

Returns

array<mixed,\Pydio\Tasks\Task>

getScheduledTasks()

getScheduledTasks() : array<mixed,\Pydio\Tasks\Task>

Returns

array<mixed,\Pydio\Tasks\Task>

getChildrenTasks()

getChildrenTasks(string  $taskId) : array<mixed,\Pydio\Tasks\Task>

Parameters

string $taskId

Returns

array<mixed,\Pydio\Tasks\Task>

publishTaskUpdate()

publishTaskUpdate(\Pydio\Tasks\Task  $task) 

Parameters

\Pydio\Tasks\Task $task

Throws

\Exception