76 $this->ctrl = $DIC->ctrl();
77 $this->lng = $DIC->language();
78 $this->
user = $DIC->user();
79 $this->access = $DIC->access();
80 $this->ref_id = $a_ref_id;
81 $this->bp_object_id = $a_booking_obj_id;
82 $this->pool_id = $a_pool_id;
86 $this->
setId(
"bkaprt" . $a_ref_id);
88 parent::__construct($a_parent_obj, $a_parent_cmd);
90 $this->
setTitle($this->lng->txt(
"book_assign_participant") .
": " . $this->bp_object->getTitle());
93 $this->
addColumn($this->lng->txt(
"name"),
"name");
95 $this->
addColumn($this->lng->txt(
"book_bobj"));
97 $this->
addColumn($this->lng->txt(
"action"));
103 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
104 $this->
setRowTemplate(
"tpl.booking_assign_participant_row.html",
"Modules/BookingManager");
110 $this->
addMultiCommand(
"bookMultipleParticipants", $this->lng->txt(
"assign"));
118 $this->lng->txt(
"book_objects_available"),
130 include_once
"Modules/BookingManager/classes/class.ilBookingParticipant.php";
147 $this->tpl->setCurrentBlock(
"multi");
148 $this->tpl->setVariable(
"MULTI_ID", $a_set[
'user_id']);
149 $this->tpl->parseCurrentBlock();
152 $this->tpl->setVariable(
"TXT_NAME", $a_set[
'name']);
153 $this->tpl->setCurrentBlock(
'object_titles');
156 foreach ($a_set[
'object_title'] as $obj_title) {
157 $this->tpl->setCurrentBlock(
"object_title");
158 $this->tpl->setVariable(
"TXT_OBJECT", $obj_title);
159 $this->tpl->parseCurrentBlock();
161 $this->tpl->setCurrentBlock(
"object_titles");
162 $this->tpl->parseCurrentBlock();
165 $this->ctrl->setParameter($this->parent_obj,
'bkusr', $a_set[
'user_id']);
166 $this->ctrl->setParameter($this->parent_obj,
'object_id', $this->bp_object_id);
168 $this->tpl->setVariable(
"TXT_ACTION", $this->lng->txt(
"book_assign"));
169 $this->tpl->setVariable(
"URL_ACTION", $this->ctrl->getLinkTarget($this->parent_obj,
'book'));
171 $this->ctrl->setParameter($this->parent_obj,
'bkusr',
'');
172 $this->ctrl->setParameter($this->parent_obj,
'object_id',
'');
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addHiddenInput($a_name, $a_value)
Add Hidden Input field.
static getList($a_booking_pool, array $a_filter=null, $a_object_id=null)
fillRow($a_set)
Fill table row.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Class ilBookingObjectGUI.
__construct(ilBookingObjectGUI $a_parent_obj, $a_parent_cmd, $a_ref_id, $a_pool_id, $a_booking_obj_id)
Constructor.
List participant / booking pool assignment.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getItems()
Gather data and build rows.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static numAvailableFromObjectNoSchedule($a_obj_id)
setEnableHeader($a_enableheader)
Set Enable Header.
setMaxCount($a_max_count)
set max.
static getAssignableParticipants($a_bp_object_id)
Get participants who can not have a reservation for this booking pool object id.