ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ScheduleManager.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
19 
23 
28 {
29  protected int $pool_id;
34 
35  public function __construct(
36  InternalDataService $data,
37  InternalRepoService $repo,
38  InternalDomainService $domain,
39  int $pool_id
40  ) {
41  $this->schedule_repo = $repo->schedules();
42  $this->schedule_repo->loadDataOfPool($pool_id);
43  $this->pool_id = $pool_id;
44  }
45 
46  public function getScheduleList(): array
47  {
48  return $this->schedule_repo->getScheduleList($this->pool_id);
49  }
50 
51  public function hasSchedules(): bool
52  {
53  return $this->schedule_repo->hasSchedules($this->pool_id);
54  }
55 
60  public function getScheduleData(): array
61  {
62  return $this->schedule_repo->getScheduleData($this->pool_id);
63  }
64 
65  public function hasScheduleId(int $schedule_id) : bool
66  {
67  $pool_id = $this->schedule_repo->getPoolIdForSchedule($schedule_id);
68  return ($pool_id === $this->pool_id);
69  }
70 
71 }
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...