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";
 
  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();
 
An exception for terminatinating execution or to throw for unit testing.
static getList($a_pool_id, $a_title=null)
Get list of booking objects for given type.
Class ilBookingParticipantGUI.
static getUserFilter($a_pool_id)
Get user data from db for an specific pool id.
static getList($a_booking_pool, array $a_filter=null, $a_object_id=null)
List booking participants.
getItems(array $filter)
Gather data and build rows.
__construct(ilBookingParticipantGUI $a_parent_obj, $a_parent_cmd, $a_ref_id, $a_pool_id)
Constructor.
getCurrentFilter()
Get current filter settings.
fillRow($a_set)
Fill table row.
setEnableHeader($a_enableheader)
Set Enable Header.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setFilterCommand($a_val, $a_caption=null)
Set filter command.
setMaxCount($a_max_count)
set max.