ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\BackgroundTasks\Bucket Interface Reference
+ Inheritance diagram for ILIAS\BackgroundTasks\Bucket:
+ Collaboration diagram for ILIAS\BackgroundTasks\Bucket:

Public Member Functions

 getUserId ()
 
 setUserId ($user_id)
 
 setPercentage (Task $task, $percentage)
 Used by a job to notify his percentage. More...
 
 getOverallPercentage ()
 
 setOverallPercentage ($percentage)
 
 setCurrentTask ($task)
 
 getCurrentTask ()
 
 setTask (Task $task)
 
 getTask ()
 
 setState ($state)
 
 getState ()
 
 checkIntegrity ()
 
 userInteraction (Option $option)
 Let the user interact with the bucket task queue. More...
 
 getDescription ()
 
 getTitle ()
 
 heartbeat ()
 There was something going on in the bucket, it's still working. More...
 
 setLastHeartbeat ($timestamp)
 
 getLastHeartbeat ()
 When was the last time that something happened on this bucket? More...
 

Detailed Description

Definition at line 15 of file Bucket.php.

Member Function Documentation

◆ checkIntegrity()

ILIAS\BackgroundTasks\Bucket::checkIntegrity ( )
Returns
boolean Returns true if everything's alright. Throws an exception otherwise.
Exceptions
Exception

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\saveBucketAndItsTasks().

+ Here is the caller graph for this function:

◆ getCurrentTask()

◆ getDescription()

◆ getLastHeartbeat()

ILIAS\BackgroundTasks\Bucket::getLastHeartbeat ( )

When was the last time that something happened on this bucket?

Returns
int Timestamp.

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\updateBucket().

+ Here is the caller graph for this function:

◆ getOverallPercentage()

◆ getState()

◆ getTask()

◆ getTitle()

◆ getUserId()

◆ heartbeat()

ILIAS\BackgroundTasks\Bucket::heartbeat ( )

There was something going on in the bucket, it's still working.

Returns
void

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

◆ setCurrentTask()

◆ setLastHeartbeat()

ILIAS\BackgroundTasks\Bucket::setLastHeartbeat (   $timestamp)
Parameters
$timestampint
Returns
void

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

◆ setOverallPercentage()

ILIAS\BackgroundTasks\Bucket::setOverallPercentage (   $percentage)

◆ setPercentage()

ILIAS\BackgroundTasks\Bucket::setPercentage ( Task  $task,
  $percentage 
)

Used by a job to notify his percentage.

Parameters
$taskTask
$percentageint

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

◆ setState()

ILIAS\BackgroundTasks\Bucket::setState (   $state)

◆ setTask()

ILIAS\BackgroundTasks\Bucket::setTask ( Task  $task)
Parameters
Task$task
Returns
void

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

◆ setUserId()

ILIAS\BackgroundTasks\Bucket::setUserId (   $user_id)

◆ userInteraction()

ILIAS\BackgroundTasks\Bucket::userInteraction ( Option  $option)

Let the user interact with the bucket task queue.

Parameters
Option$option
Returns
void

Implemented in ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucket.

Referenced by ILIAS\BackgroundTasks\Implementation\TaskManager\BasicTaskManager\continueTask().

+ Here is the caller graph for this function:

The documentation for this interface was generated from the following file: