55 $this->ctrl = $DIC->ctrl();
56 $this->lng = $DIC->language();
57 $this->
user = $DIC->user();
58 $this->access = $DIC->access();
59 $this->ref_id = $a_ref_id;
60 $this->pool_id = $a_pool_id;
62 $this->
setId(
"bkprt" . $a_ref_id);
66 $this->
setTitle($this->lng->txt(
"participants"));
68 $this->
addColumn($this->lng->txt(
"name"),
"name");
69 $this->
addColumn($this->lng->txt(
"book_bobj"));
70 $this->
addColumn($this->lng->txt(
"action"));
76 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
77 $this->
setRowTemplate(
"tpl.booking_participant_row.html",
"Modules/BookingManager");
90 $this->objects = array();
92 $this->objects[$item[
"booking_object_id"]] = $item[
"title"];
96 "" => $this->lng->txt(
'book_all'),
97 -1 => $this->lng->txt(
'book_no_objects')
99 $this->
filter[
"object"] = $item->getValue();
105 $this->lng->txt(
"object") .
" " . $this->lng->txt(
"title") .
"/" . $this->lng->txt(
"description")
110 $options = array(
"" => $this->lng->txt(
'book_all')) +
113 $item->setOptions($options);
114 $this->filter[
"user_id"] = $item->getValue();
124 if ($this->
filter[
"object"]) {
127 if ($this->
filter[
"title"]) {
130 if ($this->
filter[
"user_id"]) {
143 if ($filter[
"object"] > 0) {
145 } elseif ($filter[
"object"] == -1) {
147 $data = array_filter(
$data,
function ($item) {
148 return $item[
"obj_count"] == 0;
167 $this->tpl->setVariable(
"TXT_NAME", $a_set[
'name']);
168 $this->tpl->setCurrentBlock(
'object_titles');
169 foreach ($a_set[
'object_title'] as $obj_title) {
170 $this->tpl->setVariable(
"TXT_OBJECT", $obj_title);
171 $this->tpl->parseCurrentBlock();
178 $ctrl->setParameterByClass(
'ilbookingparticipantgui',
'bkusr', $a_set[
'user_id']);
180 'text' =>
$lng->txt(
"book_assign_object"),
181 'url' =>
$ctrl->getLinkTargetByClass(
"ilbookingparticipantgui",
'assignObjects')
183 $ctrl->setParameterByClass(
'ilbookingparticipantgui',
'bkusr',
'');
188 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'bkusr', $a_set[
'user_id']);
189 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'object_id', $a_set[
'object_ids'][0]);
193 'text' =>
$lng->txt(
"book_deassign"),
194 'url' =>
$ctrl->getLinkTargetByClass(
"ilbookingreservationsgui",
'rsvConfirmCancelUser')
197 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'bkusr',
'');
198 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'object_id',
'');
199 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'part_view',
'');
201 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'user_id', $a_set[
'user_id']);
203 'text' =>
$lng->txt(
"book_deassign"),
204 'url' =>
$ctrl->getLinkTargetByClass(
"ilbookingreservationsgui",
'log')
206 $ctrl->setParameterByClass(
'ilbookingreservationsgui',
'user_id',
'');
209 $this->tpl->setCurrentBlock(
'actions');
210 foreach ($actions as $action) {
211 $this->tpl->setVariable(
"TXT_ACTION", $action[
'text']);
212 $this->tpl->setVariable(
"URL_ACTION", $action[
'url']);
213 $this->tpl->parseCurrentBlock();
List booking participants.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getCurrentFilter()
Get current filter settings.
static getList($a_booking_pool, array $a_filter=null, $a_object_id=null)
fillRow($a_set)
Fill table row.
static getList($a_pool_id, $a_title=null)
Get list of booking objects for given type.
static getUserFilter($a_pool_id)
Get user data from db for an specific pool id.
static getNumberOfObjectsForPool($a_pool_id)
Get number of booking objects for given booking pool id.
getItems(array $filter)
Gather data and build rows.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilBookingParticipantGUI.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setMaxCount($a_max_count)
set max.
__construct(ilBookingParticipantGUI $a_parent_obj, $a_parent_cmd, $a_ref_id, $a_pool_id)
Constructor.
setFilterCommand($a_val, $a_caption=null)
Set filter command.