58 $this->tpl = $DIC[
"tpl"];
59 $this->tabs = $DIC->tabs();
60 $this->ctrl = $DIC->ctrl();
61 $this->lng = $DIC->language();
62 $this->access = $DIC->access();
63 $this->toolbar = $DIC->toolbar();
65 $this->ref_id = $a_parent_obj->ref_id;
66 $this->pool_id = $a_parent_obj->object->getId();
68 $this->lng->loadLanguageModule(
"book");
78 $next_class =
$ilCtrl->getNextClass($this);
80 switch ($next_class) {
81 case 'ilrepositorysearchgui':
82 include_once(
'./Services/Search/classes/class.ilRepositorySearchGUI.php');
84 $ref_id = $this->ref_id;
85 $rep_search->addUserAccessFilterCallable(
function ($a_user_id) use ($ref_id) {
86 return $GLOBALS[
'DIC']->access()->filterUserIdsByRbacOrPositionOfCurrentUser(
93 $rep_search->setTitle($this->lng->txt(
"exc_add_participant"));
94 $rep_search->setCallback($this,
'addParticipantObject');
95 $this->ctrl->setReturn($this,
'render');
96 $this->ctrl->forwardCommand($rep_search);
100 $cmd =
$ilCtrl->getCmd(
"render");
114 if ($this->access->checkAccess(
'edit_permission',
'', $this->ref_id)) {
119 'auto_complete_name' => $this->lng->txt(
'user'),
120 'submit_name' => $this->lng->txt(
'add'),
121 'add_search' =>
true,
122 'add_from_container' => $this->ref_id
126 include_once
'Modules/BookingManager/classes/class.ilBookingParticipantsTableGUI.php';
129 $this->tpl->setContent(
$table->getHTML());
138 if (!strlen(trim(
$_POST[
'user_login']))) {
154 $user_ids[] = $user_id;
167 foreach ($a_user_ids as $user_id) {
169 require_once(
"./Modules/BookingManager/classes/class.ilBookingParticipant.php");
172 if ($participant_obj->getIsNew()) {
173 ilUtil::sendSuccess($this->lng->txt(
"book_participant_assigned"),
true);
184 $this->ctrl->redirect($this,
"render");
206 include_once
'Modules/BookingManager/classes/class.ilBookingParticipantsTableGUI.php';
209 if ($a_filter_action === self::FILTER_ACTION_RESET) {
212 $table->writeFilterToSession();
220 $this->tabs->clearTargets();
221 $this->tabs->setBackTarget($this->lng->txt(
'book_back_to_list'), $this->ctrl->getLinkTarget($this,
'render'));
223 include_once(
"./Modules/BookingManager/classes/class.ilBookingAssignObjectsTableGUI.php");
226 $this->tpl->setContent(
$table->getHTML());
const FILTER_ACTION_RESET
Class ilObjBookingPoolGUI.
addUserFromAutoCompleteObject()
Add user as member.
List booking participants.
Class ilBookingParticipant.
__construct(ilObjBookingPoolGUI $a_parent_obj)
Constructor.
render()
Render list of booking participants.
static _lookupId($a_user_str)
Lookup id by login.
List objects / booking pool assignment.
const FILTER_ACTION_APPLY
addParticipantObject(array $a_user_ids)
Add new partipant.
Class ilBookingParticipantGUI.
applyParticipantsFilter()
Apply filter from participants table gui.
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
executeCommand()
main switch
static fillAutoCompleteToolbar($parent_object, ilToolbarGUI $toolbar=null, $a_options=array(), $a_sticky=false)
fill toolbar with
if(empty($password)) $table
resetParticipantsFilter()
Reset filter in participants table gui.
applyFilterAction($a_filter_action)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.