ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ScheduleManager.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
17 
21 
26 {
27  protected int $pool_id;
32 
33  public function __construct(
34  InternalDataService $data,
35  InternalRepoService $repo,
36  InternalDomainService $domain,
37  int $pool_id
38  ) {
39  $this->schedule_repo = $repo->schedules();
40  $this->schedule_repo->loadDataOfPool($pool_id);
41  $this->pool_id = $pool_id;
42  }
43 
44  public function getScheduleList() : array
45  {
46  return $this->schedule_repo->getScheduleList($this->pool_id);
47  }
48 
49  public function hasSchedules() : bool
50  {
51  return $this->schedule_repo->hasSchedules($this->pool_id);
52  }
53 
58  public function getScheduleData() : array
59  {
60  return $this->schedule_repo->getScheduleData($this->pool_id);
61  }
62 }
__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...