ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ClassificationManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
26 protected int $base_ref_id;
27
28 public function __construct(
30 int $base_ref_id
31 ) {
32 $this->repo = $repo;
33 $this->base_ref_id = $base_ref_id;
34 }
35
36 public function clearSelection(): void
37 {
38 $this->repo->unsetAll();
39 }
40
41 public function clearSelectionOfProvider(string $provider): void
42 {
43 $this->repo->unsetValueForProvider($provider);
44 }
45
46 public function isEmptySelection(): bool
47 {
48 return $this->repo->isEmpty();
49 }
50
51 public function getSelectionOfProvider(string $provider): array
52 {
53 return $this->repo->getValueForProvider($provider);
54 }
55
56 public function setSelectionOfProvider(string $provider, array $value): void
57 {
58 $this->repo->setValueForProvider($provider, $value);
59 }
60
61}
__construct(ClassificationSessionRepository $repo, int $base_ref_id)
$provider
Definition: ltitoken.php:80