ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ScheduleManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
31{
32 protected int $pool_id;
37
38 public function __construct(
42 int $pool_id
43 ) {
44 $this->schedule_repo = $repo->schedules();
45 $this->schedule_repo->loadDataOfPool($pool_id);
46 $this->pool_id = $pool_id;
47 }
48
49 public function getScheduleList(): array
50 {
51 return $this->schedule_repo->getScheduleList($this->pool_id);
52 }
53
54 public function hasSchedules(): bool
55 {
56 return $this->schedule_repo->hasSchedules($this->pool_id);
57 }
58
63 public function getScheduleData(): array
64 {
65 return $this->schedule_repo->getScheduleData($this->pool_id);
66 }
67
68 public function hasScheduleId(int $schedule_id): bool
69 {
70 $pool_id = $this->schedule_repo->getPoolIdForSchedule($schedule_id);
71 return ($pool_id === $this->pool_id);
72 }
73
74}
Author: Alexander Killing killing@leifos.de
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain, int $pool_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...