◆ __construct()
ilPresentationFullGUI::__construct |
( |
|
$parent_object, |
|
|
ilObjGlossary |
$glossary, |
|
|
bool |
$offline, |
|
|
int |
$tax_node = 0 |
|
) |
| |
Definition at line 47 of file class.ilPresentationFullGUI.php.
References $DIC, $glossary, $offline, $tax_node, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
55 $this->
ctrl = $DIC->ctrl();
56 $this->
user = $DIC->user();
57 $this->
lng = $DIC->language();
58 $this->tpl = $DIC->ui()->mainTemplate();
59 $this->tabs_gui = $DIC->tabs();
60 $this->nav_history = $DIC[
"ilNavigationHistory"];
61 $this->ui_fac = $DIC->ui()->factory();
62 $this->ui_ren = $DIC->ui()->renderer();
63 $this->parent_obj = $parent_object;
67 $this->request = $DIC->glossary()
72 $this->manager = $DIC->glossary()
75 ->presentation($this->glossary);
76 $this->filter_service = $DIC->uiService()->filter();
77 $this->content_style = $DIC->contentStyle();
◆ determinePageLength()
ilPresentationFullGUI::determinePageLength |
( |
| ) |
|
|
protected |
Definition at line 93 of file class.ilPresentationFullGUI.php.
Referenced by initPanel().
95 if ($this->request->getPageLength() > 0) {
96 $page_length = $this->request->getPageLength();
97 $this->manager->setSessionPageLength($page_length);
98 } elseif ($this->manager->getSessionPageLength() > 0) {
99 $page_length = $this->manager->getSessionPageLength();
◆ executeCommand()
ilPresentationFullGUI::executeCommand |
( |
| ) |
|
◆ initDropdown()
ilPresentationFullGUI::initDropdown |
( |
int |
$page_length | ) |
|
|
protected |
Definition at line 223 of file class.ilPresentationFullGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by initPanel().
223 : UI\Component\Dropdown\Dropdown
225 $terms_per_page_sel = [5 =>
"5", 10 =>
"10",
226 15 =>
"15", 20 =>
"20", 30 =>
"30", 40 =>
"40", 50 =>
"50", 100 =>
"100"];
228 foreach ($terms_per_page_sel as $count => $count_text) {
229 $this->
ctrl->setParameter($this->parent_obj,
"page_length", $count);
230 $items[] = $this->ui_fac->button()->shy($count_text, $this->
ctrl->getLinkTarget($this,
"show"));
231 $this->
ctrl->setParameter($this->parent_obj,
"page_length",
"");
233 $dropdown = $this->ui_fac->dropdown()->standard($items)
234 ->withLabel($page_length .
" " . $this->
lng->txt(
"glo_terms_per_page"));
◆ initFilter()
ilPresentationFullGUI::initFilter |
( |
| ) |
|
|
protected |
Definition at line 133 of file class.ilPresentationFullGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().
Referenced by show().
133 : UI\Component\Input\Container\Filter\Standard
135 $first_letters = $this->glossary->getFirstLetters($this->tax_node);
137 if (!empty($session_letter) && !in_array($session_letter, $first_letters)) {
138 $first_letters[$session_letter] = $session_letter;
141 $filter = $this->filter_service->standard(
142 self::class .
"_filter_" . $this->glossary->getRefId(),
143 $this->
ctrl->getLinkTarget($this,
"show"),
145 "letter" => $this->ui_fac->input()->field()->select(
146 $this->
lng->txt(
"glo_term_letter"),
149 "term" => $this->ui_fac->input()->field()->text($this->
lng->txt(
"cont_term")),
150 "definition" => $this->ui_fac->input()->field()->text($this->
lng->txt(
"cont_definition"))
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
◆ initPanel()
ilPresentationFullGUI::initPanel |
( |
int |
$page_length = 0 | ) |
|
|
protected |
Definition at line 160 of file class.ilPresentationFullGUI.php.
References ILIAS\Repository\ctrl(), determinePageLength(), initDropdown(), ILIAS\Repository\int(), ILIAS\Repository\lng(), null, and ilPageObjectGUI\PRESENTATION.
Referenced by renderPanelForOffline(), and show().
160 : UI\Component\Panel\Panel
165 $current_page = $this->request->getCurrentPage();
168 $terms = $this->glossary->getTermList(
169 $this->filter_data[
"term"] ??
"",
170 $this->filter_data[
"letter"] ??
"",
171 $this->filter_data[
"definition"] ??
"",
180 $terms_sliced = array_slice(
182 $current_page * $page_length,
187 foreach ($terms_sliced as $term) {
188 $subs[] = $this->ui_fac->panel()->sub(
190 $this->ui_fac->legacy()->content($this->parent_obj->listDefinitions(
191 $this->request->getRefId(),
201 $panel = $this->ui_fac->panel()->standard($this->
lng->txt(
"cont_terms"), $subs);
202 if (!$this->offline) {
203 $pagination = $this->ui_fac->viewControl()->pagination()
205 $this->
ctrl->getLinkTarget($this,
"show"),
208 ->withTotalEntries(count($terms))
209 ->withPageSize($page_length)
210 ->withMaxPaginationButtons(5)
211 ->withCurrentPage($this->request->getCurrentPage());
216 ->withViewControls([$pagination])
217 ->withActions($dropdown);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
initDropdown(int $page_length)
◆ renderPanelForOffline()
ilPresentationFullGUI::renderPanelForOffline |
( |
| ) |
|
◆ show()
ilPresentationFullGUI::show |
( |
| ) |
|
Definition at line 107 of file class.ilPresentationFullGUI.php.
References ILIAS\Repository\ctrl(), initFilter(), and initPanel().
109 $this->
ctrl->setParameter($this,
"term_id",
"");
110 $this->tabs_gui->activateTab(
"terms");
112 $this->nav_history->addItem(
113 $this->glossary->getRefId(),
114 $this->
ctrl->getLinkTargetByClass(
"ilGlossaryPresentationGUI",
"listTerms"),
118 $this->content_style->gui()->addCss(
120 $this->glossary->getRefId()
124 $this->filter_data = $this->filter_service->getData($filter);
125 $this->manager->setSessionLetter($this->filter_data[
"letter"] ??
"");
129 $this->tpl->setContent($this->ui_ren->render([$filter, $panel]));
130 $this->tpl->setPermanentLink(
"glo", $this->glossary->getRefId());
initPanel(int $page_length=0)
◆ $content_style
ILIAS Style Content Service ilPresentationFullGUI::$content_style |
|
protected |
◆ $ctrl
ilCtrl ilPresentationFullGUI::$ctrl |
|
protected |
◆ $filter_data
array ilPresentationFullGUI::$filter_data = null |
|
protected |
◆ $filter_service
◆ $glossary
◆ $lng
◆ $manager
Presentation PresentationManager ilPresentationFullGUI::$manager |
|
protected |
◆ $nav_history
◆ $offline
bool ilPresentationFullGUI::$offline = false |
|
protected |
◆ $parent_obj
ilPresentationFullGUI::$parent_obj |
|
protected |
◆ $request
Presentation PresentationGUIRequest ilPresentationFullGUI::$request |
|
protected |
◆ $tabs_gui
◆ $tax_node
int ilPresentationFullGUI::$tax_node = 0 |
|
protected |
◆ $tpl
◆ $ui_fac
◆ $ui_ren
◆ $user
The documentation for this class was generated from the following file: