\Pydio\Tasks\ProvidersSqlTasksProvider

Class SqlTasksProvider

Summary

Methods
Properties
Constants
createTask()
getTaskById()
updateTask()
deleteTask()
getPendingTasks()
getScheduledTasks()
getChildrenTasks()
getCurrentRunningTasks()
getActiveTasksForNode()
getTasks()
No public properties found
No constants found
taskToDBValues()
taskFromDBValues()
insertOrUpdateNodes()
loadTaskNodes()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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>

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>

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>

taskToDBValues()

taskToDBValues(\Pydio\Tasks\Task  $task, boolean  $removeId = false) : array

Serialize task for storing in ajxp_tasks

Parameters

\Pydio\Tasks\Task $task
boolean $removeId

Returns

array

taskFromDBValues()

taskFromDBValues(\DibiRow  $values) : \Pydio\Tasks\Task

Parameters

\DibiRow $values

Returns

\Pydio\Tasks\Task

insertOrUpdateNodes()

insertOrUpdateNodes(\Pydio\Tasks\Task  $task, boolean  $update = false) 

Parameters

\Pydio\Tasks\Task $task
boolean $update

loadTaskNodes()

loadTaskNodes(\Pydio\Tasks\Task  $task) 

Parameters

\Pydio\Tasks\Task $task