ILIAS  release_8 Revision v8.23
Persistence.php
Go to the documentation of this file.
1 <?php
25 namespace ILIAS\BackgroundTasks;
26 
27 interface Persistence
28 {
32  public function saveBucketAndItsTasks(Bucket $bucket): void;
33 
37  public function getBucketIdsOfUser(int $user_id, string $order_by = "id", string $order_direction = "ASC"): array;
38 
42  public function getBucketIdsByState(int $state): array;
43 
44  public function loadBucket(int $bucket_container_id): Bucket;
45 
49  public function loadBuckets(array $bucket_container_ids): array;
50 
54  public function deleteBucketById(int $bucket_id): void;
55 
59  public function deleteBucket(Bucket $bucket): void;
60 
64  public function updateBucket(Bucket $bucket): void;
65 
69  public function getBucketContainerId(Bucket $bucket): int;
70 
74  public function getBucketMetaOfUser(int $user_id): array;
75 }
loadBuckets(array $bucket_container_ids)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadBucket(int $bucket_container_id)
saveBucketAndItsTasks(Bucket $bucket)
getBucketIdsOfUser(int $user_id, string $order_by="id", string $order_direction="ASC")
getBucketContainerId(Bucket $bucket)
deleteBucket(Bucket $bucket)
Delete the bucket and all its stuff.
updateBucket(Bucket $bucket)
Updates only the bucket! Use this if e.g.
deleteBucketById(int $bucket_id)
Deletes the Observer AND all its tasks and values.