ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Persistence.php
Go to the documentation of this file.
1<?php
2
26namespace ILIAS\BackgroundTasks;
27
28interface Persistence
29{
33 public function saveBucketAndItsTasks(Bucket $bucket): void;
34
38 public function getBucketIdsOfUser(int $user_id, string $order_by = "id", string $order_direction = "ASC"): array;
39
43 public function getBucketIdsByState(int $state): array;
44
45 public function loadBucket(int $bucket_container_id): Bucket;
46
50 public function loadBuckets(array $bucket_container_ids): array;
51
55 public function deleteBucketById(int $bucket_id): void;
56
60 public function deleteBucket(Bucket $bucket): void;
61
65 public function updateBucket(Bucket $bucket): void;
66
70 public function getBucketContainerId(Bucket $bucket): int;
71
75 public function getBucketMetaOfUser(int $user_id): array;
76}
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...