ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilBookingHelpAdapter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $pool;
17
21 protected $help;
22
29 {
30 $this->pool = $pool;
31 $this->help = $help;
32 }
33
37 public function setHelpId(string $a_id)
38 {
39 $ilHelp = $this->help;
40
41 $object_subtype = ($this->pool->getScheduleType() == ilObjBookingPool::TYPE_FIX_SCHEDULE)
42 ? '-schedule'
43 : '-nonschedule';
44
45 $ilHelp->setScreenIdComponent('book');
46 $ilHelp->setScreenId('object' . $object_subtype);
47 $ilHelp->setSubScreenId($a_id);
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
Help adapter for booking manager.
__construct(ilObjBookingPool $pool, ilHelpGUI $help)
Constructor.
Help GUI class.
Class ilObjBookingPool.
help()
Definition: help.php:2