ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Persistence.php
Go to the documentation of this file.
1 <?php
24 namespace ILIAS\BackgroundTasks;
25 
26 interface Persistence
27 {
31  public function saveBucketAndItsTasks(Bucket $bucket): void;
32 
36  public function getBucketIdsOfUser(int $user_id, string $order_by = "id", string $order_direction = "ASC"): array;
37 
41  public function getBucketIdsByState(int $state): array;
42 
43  public function loadBucket(int $bucket_container_id): Bucket;
44 
48  public function loadBuckets(array $bucket_container_ids): array;
49 
53  public function deleteBucketById(int $bucket_id): void;
54 
58  public function deleteBucket(Bucket $bucket): void;
59 
63  public function updateBucket(Bucket $bucket): void;
64 
68  public function getBucketContainerId(Bucket $bucket): int;
69 
73  public function getBucketMetaOfUser(int $user_id): array;
74 }
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.