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);
64 parent::__construct($a_parent_obj, $a_parent_cmd);
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"];
95 $item->setOptions(array(
"" => $this->lng->txt(
'book_all')) + $this->objects);
96 $this->filter[
"object"] = $item->getValue();
102 $this->lng->txt(
"object") .
" " . $this->lng->txt(
"title") .
"/" . $this->lng->txt(
"description")
104 $this->filter[
"title"] =
$title->getValue();
107 require_once(
"./Modules/BookingManager/classes/class.ilBookingParticipant.php");
108 $options = array(
"" => $this->lng->txt(
'book_all')) +
112 $this->filter[
"user_id"] = $item->getValue();
122 if ($this->filter[
"object"]) {
123 $filter[
"object"] = $this->filter[
"object"];
125 if ($this->filter[
"title"]) {
126 $filter[
"title"] = $this->filter[
"title"];
128 if ($this->filter[
"user_id"]) {
129 $filter[
"user_id"] = $this->filter[
"user_id"];
141 include_once
"Modules/BookingManager/classes/class.ilBookingParticipant.php";
143 if ($filter[
"object"]) {
159 $this->tpl->setVariable(
"TXT_NAME", $a_set[
'name']);
160 $this->tpl->setCurrentBlock(
'object_titles');
161 foreach ($a_set[
'object_title'] as $obj_title) {
162 $this->tpl->setVariable(
"TXT_OBJECT", $obj_title);
163 $this->tpl->parseCurrentBlock();
166 $this->tpl->setCurrentBlock(
'actions');
168 $this->tpl->setVariable(
"TXT_ACTION",
$action[
'text']);
169 $this->tpl->setVariable(
"URL_ACTION",
$action[
'url']);
170 $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.
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.
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.