ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Background task. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
getHandlerInstance () | |
isToBeCancelled () | |
getHandlerId () | |
Gets the handler. More... | |
setHandlerId ($a_val) | |
Sets the handler id. More... | |
getId () | |
Gets the id. More... | |
getUserId () | |
Gets the user id. More... | |
setUserId ($a_val) | |
Sets the user id. More... | |
getStartDate () | |
Gets the date when the download was started. More... | |
getStatus () | |
Gets the status. More... | |
setStatus ($a_val) | |
Sets the status. More... | |
getSteps () | |
Gets the steps. More... | |
setSteps ($a_val) | |
Sets the steps. More... | |
getCurrentStep () | |
Gets the current step. More... | |
setCurrentStep ($a_val) | |
Sets the current step. More... | |
getParams () | |
Gets the params. More... | |
setParams (array $a_params=null) | |
Sets the params. More... | |
exists () | |
Gets whether the download object exists. More... | |
save () | |
delete () | |
Static Public Member Functions | |
static | getActiveByUserId ($a_user_id) |
Data Fields | |
const | STATUS_INITIALIZED = "initialized" |
const | STATUS_PROCESSING = "processing" |
const | STATUS_PROCESSED = "processed" |
const | STATUS_CANCELLING = "cancelling" |
const | STATUS_CANCELLED = "cancelled" |
const | STATUS_FINISHED = "finished" |
const | STATUS_FAILED = "failed" |
const | DB_NAME = "background_task" |
Protected Member Functions | |
setId ($a_val) | |
Sets the id. More... | |
setStartDate (ilDateTime $a_val) | |
Sets the date when the download was started. More... | |
getValidStatus () | |
doRead ($a_id) | |
preparePropertiesForDB () | |
doCreate () | |
doUpdate () | |
doDelete () | |
Deletes the object from the database. More... | |
Protected Attributes | |
$id | |
$user_id | |
$start_date | |
$status | |
$steps | |
$current_step | |
$handler | |
$params | |
$exists | |
$log | |
Background task.
Definition at line 11 of file class.ilBackgroundTask.php.
ilBackgroundTask::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Definition at line 45 of file class.ilBackgroundTask.php.
References doRead(), and ilLoggerFactory\getLogger().
ilBackgroundTask::delete | ( | ) |
Definition at line 296 of file class.ilBackgroundTask.php.
References doDelete(), exists(), and getHandlerId().
|
protected |
Definition at line 351 of file class.ilBackgroundTask.php.
References $DIC, $ilDB, array, exists(), getId(), IL_CAL_UNIX, preparePropertiesForDB(), setId(), setStartDate(), and time.
Referenced by save().
|
protected |
|
protected |
Definition at line 307 of file class.ilBackgroundTask.php.
References $DIC, $ilDB, array, exists(), getHandlerId(), IL_CAL_DATETIME, setCurrentStep(), setHandlerId(), setId(), setParams(), setStartDate(), setStatus(), setSteps(), and setUserId().
Referenced by __construct(), and isToBeCancelled().
|
protected |
Definition at line 367 of file class.ilBackgroundTask.php.
References $DIC, $ilDB, array, getId(), and preparePropertiesForDB().
Referenced by save().
ilBackgroundTask::exists | ( | ) |
Gets whether the download object exists.
Definition at line 275 of file class.ilBackgroundTask.php.
References $exists.
Referenced by delete(), doCreate(), doRead(), and save().
|
static |
Definition at line 67 of file class.ilBackgroundTask.php.
References $DIC, $ilDB, $res, $row, and array.
Referenced by ilFolderDownloadBackgroundTaskHandler\init(), and ilBackgroundTaskHub\unblock().
ilBackgroundTask::getCurrentStep | ( | ) |
Gets the current step.
Definition at line 235 of file class.ilBackgroundTask.php.
References $current_step.
Referenced by ilBackgroundTaskJson\getProgressJson(), and preparePropertiesForDB().
ilBackgroundTask::getHandlerId | ( | ) |
Gets the handler.
Definition at line 100 of file class.ilBackgroundTask.php.
References $handler.
Referenced by delete(), doRead(), getHandlerInstance(), preparePropertiesForDB(), and save().
ilBackgroundTask::getHandlerInstance | ( | ) |
Definition at line 57 of file class.ilBackgroundTask.php.
References getHandlerId().
ilBackgroundTask::getId | ( | ) |
Gets the id.
Definition at line 120 of file class.ilBackgroundTask.php.
References $id.
Referenced by doCreate(), doDelete(), doUpdate(), and isToBeCancelled().
ilBackgroundTask::getParams | ( | ) |
Gets the params.
Definition at line 255 of file class.ilBackgroundTask.php.
References $params.
Referenced by ilFolderDownloadBackgroundTaskHandler\getInstanceFromTask(), and preparePropertiesForDB().
ilBackgroundTask::getStartDate | ( | ) |
Gets the date when the download was started.
Definition at line 160 of file class.ilBackgroundTask.php.
References $start_date.
Referenced by preparePropertiesForDB().
ilBackgroundTask::getStatus | ( | ) |
Gets the status.
Definition at line 180 of file class.ilBackgroundTask.php.
References $status.
Referenced by ilBackgroundTaskJson\getProgressJson(), isToBeCancelled(), and preparePropertiesForDB().
ilBackgroundTask::getSteps | ( | ) |
Gets the steps.
Definition at line 215 of file class.ilBackgroundTask.php.
References $steps.
Referenced by ilBackgroundTaskJson\getProgressJson(), preparePropertiesForDB(), and setCurrentStep().
ilBackgroundTask::getUserId | ( | ) |
Gets the user id.
Definition at line 140 of file class.ilBackgroundTask.php.
References $user_id.
Referenced by preparePropertiesForDB().
|
protected |
Definition at line 185 of file class.ilBackgroundTask.php.
References array.
Referenced by setStatus().
ilBackgroundTask::isToBeCancelled | ( | ) |
Definition at line 84 of file class.ilBackgroundTask.php.
References doRead(), getId(), and getStatus().
|
protected |
Definition at line 336 of file class.ilBackgroundTask.php.
References array, getCurrentStep(), getHandlerId(), getParams(), getStartDate(), getStatus(), getSteps(), getUserId(), and IL_CAL_DATETIME.
Referenced by doCreate(), and doUpdate().
ilBackgroundTask::save | ( | ) |
Definition at line 285 of file class.ilBackgroundTask.php.
References doCreate(), doUpdate(), exists(), and getHandlerId().
ilBackgroundTask::setCurrentStep | ( | $a_val | ) |
Sets the current step.
int | $a_val | The new value. |
Definition at line 245 of file class.ilBackgroundTask.php.
References getSteps().
Referenced by doRead().
ilBackgroundTask::setHandlerId | ( | $a_val | ) |
Sets the handler id.
$a_val | The new value. |
Definition at line 110 of file class.ilBackgroundTask.php.
Referenced by doRead().
|
protected |
Sets the id.
int | $a_val | The new value. |
Definition at line 130 of file class.ilBackgroundTask.php.
Referenced by doCreate(), and doRead().
ilBackgroundTask::setParams | ( | array | $a_params = null | ) |
Sets the params.
array | $a_val | The new value. |
Definition at line 265 of file class.ilBackgroundTask.php.
Referenced by doRead().
|
protected |
Sets the date when the download was started.
ilDateTime | $a_val | The new value. |
Definition at line 170 of file class.ilBackgroundTask.php.
Referenced by doCreate(), and doRead().
ilBackgroundTask::setStatus | ( | $a_val | ) |
Sets the status.
int | $a_val | The new value. |
Definition at line 203 of file class.ilBackgroundTask.php.
References getValidStatus().
Referenced by doRead().
ilBackgroundTask::setSteps | ( | $a_val | ) |
Sets the steps.
int | $a_val | The new value. |
Definition at line 225 of file class.ilBackgroundTask.php.
Referenced by doRead().
ilBackgroundTask::setUserId | ( | $a_val | ) |
Sets the user id.
int | $a_val | The new value. |
Definition at line 150 of file class.ilBackgroundTask.php.
Referenced by doRead().
|
protected |
Definition at line 18 of file class.ilBackgroundTask.php.
Referenced by getCurrentStep().
|
protected |
Definition at line 21 of file class.ilBackgroundTask.php.
Referenced by exists().
|
protected |
Definition at line 19 of file class.ilBackgroundTask.php.
Referenced by getHandlerId().
|
protected |
Definition at line 13 of file class.ilBackgroundTask.php.
Referenced by getId().
|
protected |
Definition at line 26 of file class.ilBackgroundTask.php.
|
protected |
Definition at line 20 of file class.ilBackgroundTask.php.
Referenced by getParams().
|
protected |
Definition at line 15 of file class.ilBackgroundTask.php.
Referenced by getStartDate().
|
protected |
Definition at line 16 of file class.ilBackgroundTask.php.
Referenced by getStatus().
|
protected |
Definition at line 17 of file class.ilBackgroundTask.php.
Referenced by getSteps().
|
protected |
Definition at line 14 of file class.ilBackgroundTask.php.
Referenced by getUserId().
const ilBackgroundTask::DB_NAME = "background_task" |
Definition at line 37 of file class.ilBackgroundTask.php.
Referenced by ilBackgroundTaskCronGarbageCollection\run().
const ilBackgroundTask::STATUS_CANCELLED = "cancelled" |
Definition at line 33 of file class.ilBackgroundTask.php.
Referenced by ilZipBackgroundTaskHandler\cancel().
const ilBackgroundTask::STATUS_CANCELLING = "cancelling" |
Definition at line 32 of file class.ilBackgroundTask.php.
Referenced by ilBackgroundTaskHub\cancel(), and ilBackgroundTaskHub\unblock().
const ilBackgroundTask::STATUS_FAILED = "failed" |
Definition at line 35 of file class.ilBackgroundTask.php.
const ilBackgroundTask::STATUS_FINISHED = "finished" |
Definition at line 34 of file class.ilBackgroundTask.php.
Referenced by ilFolderDownloadBackgroundTaskHandler\init(), ilZipBackgroundTaskHandler\process(), and ilBackgroundTaskHub\progress().
const ilBackgroundTask::STATUS_INITIALIZED = "initialized" |
Definition at line 29 of file class.ilBackgroundTask.php.
Referenced by ilFolderDownloadBackgroundTaskHandler\init().
const ilBackgroundTask::STATUS_PROCESSED = "processed" |
Definition at line 31 of file class.ilBackgroundTask.php.
const ilBackgroundTask::STATUS_PROCESSING = "processing" |
Definition at line 30 of file class.ilBackgroundTask.php.
Referenced by ilBackgroundTaskHub\process().