/** * Resets all the input fields. */ public function resetRoomFilterObject() { $roomsTable = new ilRoomSharingRoomsTableGUI($this, 'showRooms', $this->ref_id); $roomsTable->initFilter(); $roomsTable->resetFilter(); $roomsTable->resetOffset(); // set the record offset to 0 (first page) $this->showRoomsObject(); }
/** * Displays the results for the given input. */ public function showSearchResults() { $new_search_toolbar = $this->createNewSearchToolbar(); $search_form = $this->createForm(); $rooms_table = new ilRoomSharingRoomsTableGUI($this, "showSearchResults", $this->ref_id); $rooms_table->setTitle($this->lng->txt("search_results")); $rooms_table->getItems($this->getFormInput($search_form)); $this->tpl->setContent($new_search_toolbar->getHTML() . $rooms_table->getHTML()); }