ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
Persistence.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\BackgroundTasks;
22
23interface Persistence
24{
28 public function saveBucketAndItsTasks(Bucket $bucket): void;
29
33 public function getBucketIdsOfUser(int $user_id, string $order_by = 'id', string $order_direction = 'ASC'): array;
34
38 public function getBucketIdsByState(int $state): array;
39
40 public function loadBucket(int $bucket_container_id): Bucket;
41
45 public function loadBuckets(array $bucket_container_ids): array;
46
50 public function deleteBucketById(int $bucket_id): void;
51
55 public function deleteBucket(Bucket $bucket): void;
56
60 public function updateBucket(Bucket $bucket): void;
61
65 public function getBucketContainerId(Bucket $bucket): int;
66
70 public function getBucketMetaOfUser(int $user_id): array;
71
72 public function garbageCollection(): void;
73}
deleteBucket(Bucket $bucket)
Delete the bucket and all its stuff.
loadBuckets(array $bucket_container_ids)
getBucketIdsOfUser(int $user_id, string $order_by='id', string $order_direction='ASC')
loadBucket(int $bucket_container_id)
getBucketContainerId(Bucket $bucket)
deleteBucketById(int $bucket_id)
Deletes the Observer AND all its tasks and values.
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...