ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\News\Dashboard\InternalGUIService Class Reference
+ Collaboration diagram for ILIAS\News\Dashboard\InternalGUIService:

Public Member Functions

 __construct (InternalDataService $data_service, InternalDomainService $domain_service, \ILIAS\News\InternalGUIService $gui_service)
 
 getFilter ($force_re_init=false)
 
 getTimelineGUI ()
 

Protected Attributes

DashboardNewsManager $manager
 
InternalDataService $data
 
InternalDomainService $domain
 
ILIAS News InternalGUIService $gui
 
FilterAdapterGUI $filter = null
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 32 of file class.InternalGUIService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\News\Dashboard\InternalGUIService::__construct ( InternalDataService  $data_service,
InternalDomainService  $domain_service,
\ILIAS\News\InternalGUIService  $gui_service 
)

Definition at line 40 of file class.InternalGUIService.php.

44 {
45 $this->data = $data_service;
46 $this->domain = $domain_service;
47 $this->gui = $gui_service;
48 $this->manager = $domain_service->dashboard();
49 }

References ILIAS\News\InternalDomainService\dashboard().

+ Here is the call graph for this function:

Member Function Documentation

◆ getFilter()

ILIAS\News\Dashboard\InternalGUIService::getFilter (   $force_re_init = false)

Definition at line 51 of file class.InternalGUIService.php.

51 : FilterAdapterGUI
52 {
54 $lng = $this->domain->lng();
55 if (is_null($this->filter) || $force_re_init) {
56 $per_options = $this->manager->getPeriodOptions();
57 $context_options = $this->manager->getContextOptions();
58
59 $this->filter = $gui->filter(
60 "news_dashboard_filter",
61 [\ilDashboardGUI::class, \ilPDNewsGUI::class],
62 "view",
63 false,
64 false
65 )
66 ->select(
67 "news_per",
68 $lng->txt("news_time_period"),
69 $per_options,
70 true,
71 (string) $this->manager->getDashboardNewsPeriod(),
72 true
73 )
74 ->select("news_ref_id", $lng->txt("context"), $context_options, true, null, true);
75 }
76 return $this->filter;
77 }
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
global $lng
Definition: privfeed.php:31

References ILIAS\News\Dashboard\InternalGUIService\$filter, ILIAS\News\Dashboard\InternalGUIService\$gui, $lng, and ILIAS\Repository\filter().

Referenced by ILIAS\News\Dashboard\InternalGUIService\getTimelineGUI().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTimelineGUI()

ILIAS\News\Dashboard\InternalGUIService::getTimelineGUI ( )

Definition at line 79 of file class.InternalGUIService.php.

80 {
81 $ctrl = $this->gui->ctrl();
82 if ($ctrl->isAsynch() && ! $this->gui->standardRequest()->getFilterOff()) {
83 $period = $this->manager->getDashboardNewsPeriod();
84 $news_ref_id = $this->manager->getDashboardSelectedRefId();
85 } else {
86 $filter = $this->getFilter();
88 $period = (int) ($data["news_per"] ?? 0);
89 $news_ref_id = (int) ($data["news_ref_id"] ?? 0);
90 }
91 $t = \ilNewsTimelineGUI::getInstance($news_ref_id, true);
92 $t->setPeriod($period);
93 $t->setEnableAddNews(false);
94 $t->setUserEditAll(false);
95 return $t;
96 }
static getInstance(int $a_ref_id, bool $a_include_auto_entries)

References ILIAS\News\Dashboard\InternalGUIService\$data, ILIAS\News\Dashboard\InternalGUIService\$filter, ILIAS\Repository\Filter\FilterAdapterGUI\getData(), ILIAS\News\Dashboard\InternalGUIService\getFilter(), ilNewsTimelineGUI\getInstance(), and ILIAS\Repository\int().

+ Here is the call graph for this function:

Field Documentation

◆ $data

InternalDataService ILIAS\News\Dashboard\InternalGUIService::$data
protected

◆ $domain

InternalDomainService ILIAS\News\Dashboard\InternalGUIService::$domain
protected

Definition at line 36 of file class.InternalGUIService.php.

◆ $filter

FilterAdapterGUI ILIAS\News\Dashboard\InternalGUIService::$filter = null
protected

◆ $gui

ILIAS News InternalGUIService ILIAS\News\Dashboard\InternalGUIService::$gui
protected

◆ $manager

DashboardNewsManager ILIAS\News\Dashboard\InternalGUIService::$manager
protected

Definition at line 34 of file class.InternalGUIService.php.


The documentation for this class was generated from the following file: