46 $this->
help = $DIC[
"ilHelp"];
47 $this->
user = $DIC->user();
50 $ilCtrl =
$DIC->ctrl();
51 $ilHelp =
$DIC[
"ilHelp"];
53 $ilHelp->setScreenIdComponent(
"news");
55 $this->std_request =
$DIC->news()
63 $this->
ctrl = $ilCtrl;
67 $this->
ctrl->saveParameter($this,
"news_ref_id");
69 $this->gui =
$DIC->news()
72 $this->domain =
$DIC->news()
75 $this->dash_news_repo =
$DIC->news()
79 $this->dash_news_manager =
$DIC->news()
87 $next_class = $this->
ctrl->getNextClass();
89 if (!$this->domain->settings()->get(
"block_activated_news")) {
93 switch (strtolower($next_class)) {
94 case strtolower(ilNewsTimelineGUI::class):
95 $t = $this->gui->dashboard()->getTimelineGUI();
96 $this->
ctrl->forwardCommand($t);
99 case strtolower(ilCommonActionDispatcherGUI::class):
101 $this->
ctrl->forwardCommand($gui);
105 $cmd = $this->
ctrl->getCmd(
"view");
110 $this->tpl->printToStdout();
116 $this->tpl->setTitle($this->
lng->txt(
"news"));
122 $filter = $this->gui->dashboard()->getFilter();
126 $filter = $this->gui->dashboard()->getFilter(
true);
127 $t = $this->gui->dashboard()->getTimelineGUI();
129 $this->tpl->setContent(
131 $this->ctrl->getHTML($t)
139 $news_ref_id = $this->std_request->getNewsRefId();
140 $news_per = $this->std_request->getNewsPer();
142 $this->
ctrl->setParameter($this,
"news_ref_id", $news_ref_id);
143 $ilUser->writePref(
"news_sel_ref_id", (
string) $news_ref_id);
147 $this->
ctrl->redirect($this,
"view");
152 $this->dash_news_manager->saveFilterData($filter->
getData());
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Class ilCtrl provides processing control methods.
Manages favourites, currently the interface for other components, needs discussion.
loadLanguageModule(string $a_module)
Load language module.
@ilCtrl_Calls ilPDNewsGUI: ilNewsTimelineGUI, ilCommonActionDispatcherGUI, ILIAS\User\Profile\PublicP...
ilGlobalTemplateInterface $tpl
DashboardNewsManager $dash_news_manager
saveFilterValues(FilterAdapterGUI $filter)
InternalDomainService $domain
ILIAS News Dashboard DashboardSessionRepository $dash_news_repo
StandardGUIRequest $std_request
ilFavouritesManager $fav_manager
static set(string $a_var, $a_val)
Set a value.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)