ILIAS  release_8 Revision v8.24
Persistence.php
Go to the documentation of this file.
1<?php
25namespace ILIAS\BackgroundTasks;
26
27interface 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}
deleteBucket(Bucket $bucket)
Delete the bucket and all its stuff.
loadBuckets(array $bucket_container_ids)
loadBucket(int $bucket_container_id)
getBucketContainerId(Bucket $bucket)
deleteBucketById(int $bucket_id)
Deletes the Observer AND all its tasks and values.
getBucketIdsOfUser(int $user_id, string $order_by="id", string $order_direction="ASC")
updateBucket(Bucket $bucket)
Updates only the bucket! Use this if e.g.
saveBucketAndItsTasks(Bucket $bucket)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...