ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilPDNewsBlockGUI Class Reference

BlockGUI class for block NewsForContext. More...

+ Inheritance diagram for ilPDNewsBlockGUI:
+ Collaboration diagram for ilPDNewsBlockGUI:

Public Member Functions

 __construct ()
 
 getBlockType ()
 
 executeCommand ()
 
 getHTML ()
 
 showFeedUrl ()
 
 editSettings (?ilPropertyFormGUI $a_private_form=null)
 
 saveSettings ()
 
 changeFeedSettings ()
 
- Public Member Functions inherited from ilNewsForContextBlockGUI
 __construct ()
 
 getBlockType ()
 
 executeCommand ()
 
 getHTML ()
 
 handleView ()
 Handles show/hide notification view and removes notifications if hidden. More...
 
 getOverview ()
 
 makeClickable (string $a_str)
 
 showNotifications ()
 
 hideNotifications ()
 
 editSettings ()
 Show settings screen. More...
 
 initSettingsForm ()
 Init setting form. More...
 
 cancelSettings ()
 
 saveSettings ()
 
 showFeedUrl ()
 
 getDynamicReload ()
 
 getJSEnabler ()
 
 disableJS ()
 
 enableJS ()
 
 getNoItemFoundContent ()
 
- Public Member Functions inherited from ilBlockGUI
 __construct ()
 
 getBlockType ()
 
 setData (array $a_data)
 
 getData ()
 
 setPresentation (int $type)
 
 getPresentation ()
 
 setBlockId (string $a_block_id="0")
 
 getBlockId ()
 
 setGuiObject (object $a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setOffset (int $a_offset)
 
 getOffset ()
 
 checkOffset (int $offset)
 
 setLimit (int $a_limit)
 
 getLimit ()
 
 setEnableEdit (bool $a_enableedit)
 
 getEnableEdit ()
 
 setRepositoryMode (bool $a_repositorymode)
 
 getRepositoryMode ()
 
 setSubtitle (string $a_subtitle)
 
 getSubtitle ()
 
 setRefId (int $a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 
 setAdminCommands (bool $a_admincommands)
 
 getAdminCommands ()
 
 setEnableNumInfo (bool $a_enablenuminfo)
 
 getEnableNumInfo ()
 
 setProperties (array $a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty (string $a_property)
 
 setProperty (string $a_property, string $a_value)
 
 setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 
 getRowTemplateDir ()
 
 addBlockCommand (string $a_href, string $a_text, string $a_onclick="", ?RoundTrip $modal=null)
 
 getBlockCommands ()
 
 getHTML ()
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getViewControlsForPanel ()
 
 sortObject ()
 
 addSortOption (string $option, string $label, bool $active)
 
 setSortTarget (string $target)
 
 addPresentation (string $label, string $target, bool $active)
 
 getNoItemFoundContent ()
 

Static Public Member Functions

static getScreenMode ()
 
- Static Public Member Functions inherited from ilNewsForContextBlockGUI
static getScreenMode ()
 
static addToSettingsForm (ilFormPropertyGUI $a_input)
 Add inputs to the container news settings form to configure also the contextBlock options. More...
 
static writeSettings (array $a_values)
 
static getScreenMode ()
 

Static Public Attributes

static string $block_type = "pdnews"
 
- Static Public Attributes inherited from ilNewsForContextBlockGUI
static string $block_type = "news"
 

Protected Member Functions

 initPrivateSettingsForm ()
 
- Protected Member Functions inherited from ilNewsForContextBlockGUI
 initData (NewsCollection $collection)
 
 preloadData (array $data)
 Method will be called before rendering the block. More...
 
 getListItemForData (array $data)
 Get list item for data array. More...
 
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 getMediaPath (int $mob_id)
 
 downloadMob ()
 
- Protected Member Functions inherited from ilBlockGUI
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 specialCharsAsEntities (string $string)
 
 initCommands ()
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 getLegacyContent ()
 Get legacy content. More...
 
 getListItemForData (array $data)
 Get list item for data array. More...
 
 handleNavigation ()
 Handle navigation. More...
 
 loadData ()
 Load data for current page. More...
 
 getListItemGroups ()
 Get items. More...
 
 addRepoCommands ()
 Add repo commands. More...
 
 getActionsForPanel ()
 
 send (string $output)
 Send. More...
 

Private Member Functions

 loadNewsData ()
 

Additional Inherited Members

- Data Fields inherited from ilNewsForContextBlockGUI
const OBJECTS_WITH_NEWS_SUBTAB = ["category", "course", "group", "forum"]
 object type names with settings->news settings subtab More...
 
- Data Fields inherited from ilBlockGUI
const PRES_MAIN_LEG = 0
 
const PRES_SEC_LEG = 1
 
const PRES_SEC_LIST = 2
 
const PRES_MAIN_LIST = 3
 
const PRES_MAIN_TILE = 4
 
- Protected Attributes inherited from ilNewsForContextBlockGUI
NewsAccess $news_access
 
bool $dynamic = false
 
bool $show_view_selection
 
string $view
 
ilPropertyFormGUI $settings_form
 
ilHelpGUI $help
 
ilSetting $settings
 
ilTabsGUI $tabs
 
StandardGUIRequest $std_request
 
InternalDomainService $domain
 
InternalGUIService $gui
 
bool $prevent_initial_loading = false
 
NewsCollection $collection
 
- Protected Attributes inherited from ilBlockGUI
ILIAS UI Renderer $renderer
 
Factory $factory
 
object $gui_object
 
ILIAS Container Block StandardGUIRequest $request
 
ILIAS Container Block BlockManager $block_manager
 
bool $repositorymode = false
 
ILIAS DI UIServices $ui
 
array $data = array()
 
bool $enablenuminfo = true
 
array $footer_links = array()
 
string $block_id = "0"
 
bool $allow_moving = true
 
array $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
array $block_commands = array()
 
int $max_count = 0
 
bool $close_command = false
 
bool $image = false
 
array $property = []
 
string $nav_value = ""
 
string $css_row = ""
 
string $title = ""
 
bool $admincommands = false
 
array $dropdown
 
ilTemplate $tpl
 
ilGlobalTemplateInterface $main_tpl
 
ilObjUser $user
 
ilCtrl $ctrl
 
ilAccessHandler $access
 
ilLanguage $lng
 
ilObjectDefinition $obj_def
 
int $presentation
 
int $requested_ref_id
 

Detailed Description

BlockGUI class for block NewsForContext.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_IsCalledBy ilPDNewsBlockGUI: ilColumnGUI

Definition at line 28 of file class.ilPDNewsBlockGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPDNewsBlockGUI::__construct ( )

Reimplemented from ilNewsForContextBlockGUI.

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

33 {
34 $this->prevent_initial_loading = true; // prevents loading in the parent constructor!
36
37 $this->dynamic = false;
38 $this->setLimit(5);
39 $this->setTitle($this->lng->txt("news_internal_news"));
40 $this->setRowTemplate("tpl.block_row_news_for_context.html", "components/ILIAS/News");
41
42 $this->loadNewsData();
43 $this->handleView();
44 $this->setPresentation(self::PRES_SEC_LIST);
45 }
setTitle(string $a_title)
setPresentation(int $type)
setLimit(int $a_limit)
setRowTemplate(string $a_rowtemplatename, string $a_rowtemplatedir="")
Set Row Template Name.
handleView()
Handles show/hide notification view and removes notifications if hidden.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), ilNewsForContextBlockGUI\handleView(), ILIAS\Repository\lng(), loadNewsData(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().

+ Here is the call graph for this function:

Member Function Documentation

◆ changeFeedSettings()

ilPDNewsBlockGUI::changeFeedSettings ( )

Definition at line 306 of file class.ilPDNewsBlockGUI.php.

306 : string
307 {
308 $ilCtrl = $this->ctrl;
310 $ilUser = $this->user;
311
312 $form = $this->initPrivateSettingsForm();
313 if ($form->checkInput()) {
314 // Deactivate private Feed - just delete the password
315 if (!$form->getInput("enable_private_feed")) {
316 $ilUser->setFeedPass("");
317 $this->main_tpl->setOnScreenMessage('success', $lng->txt("priv_feed_disabled"), true);
318 // $ilCtrl->returnToParent($this);
319 $ilCtrl->redirect($this, "showFeedUrl");
320 } else {
321 $passwd = $form->getInput("desired_password");
322 if (LocalUserPasswordManager::getInstance()->verifyPassword($ilUser, $passwd)) {
323 $form->getItemByPostVar("desired_password")->setAlert($lng->txt("passwd_equals_ilpasswd"));
324 $this->main_tpl->setOnScreenMessage('failure', $lng->txt("form_input_not_valid"));
325 } else {
326 $ilUser->setFeedPass($passwd);
327 $this->main_tpl->setOnScreenMessage('success', $lng->txt("saved_successfully"), true);
328 $ilCtrl->redirect($this, "showFeedUrl");
329 }
330 }
331 }
332
333 $form->setValuesByPost();
334 return $this->editSettings($form);
335 }
ilLanguage $lng
ilObjUser $user
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...

References ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\$user, ilNewsForContextBlockGUI\editSettings(), initPrivateSettingsForm(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ editSettings()

ilPDNewsBlockGUI::editSettings ( ?ilPropertyFormGUI  $a_private_form = null)

Definition at line 184 of file class.ilPDNewsBlockGUI.php.

184 : string
185 {
186 $ilUser = $this->user;
188 $ilCtrl = $this->ctrl;
189 $returnForm = "";
190
191 $news_set = new ilSetting("news");
192 $allow_shorter_periods = $news_set->get("allow_shorter_periods");
193 $allow_longer_periods = $news_set->get("allow_longer_periods");
194 $enable_private_feed = $news_set->get("enable_private_feed");
195
196 if (!$a_private_form && ($allow_shorter_periods || $allow_longer_periods)) {
197 $form = new ilPropertyFormGUI();
198 $form->setFormAction($ilCtrl->getFormAction($this));
199 $form->setTitle($lng->txt("news_settings"));
200
201 $default_per = ilNewsItem::_lookupDefaultPDPeriod();
202 $per = ilNewsItem::_lookupUserPDPeriod($ilUser->getId());
203
204 $form->setTableWidth("100%");
205
206 $per_opts = [
207 2 => "2 " . $lng->txt("days"),
208 3 => "3 " . $lng->txt("days"),
209 5 => "5 " . $lng->txt("days"),
210 7 => "1 " . $lng->txt("week"),
211 14 => "2 " . $lng->txt("weeks"),
212 30 => "1 " . $lng->txt("month"),
213 60 => "2 " . $lng->txt("months"),
214 120 => "4 " . $lng->txt("months"),
215 180 => "6 " . $lng->txt("months"),
216 366 => "1 " . $lng->txt("year")
217 ];
218
219 $unset = [];
220 foreach ($per_opts as $k => $opt) {
221 if (!$allow_shorter_periods && ($k < $default_per)) {
222 $unset[$k] = $k;
223 }
224 if (!$allow_longer_periods && ($k > $default_per)) {
225 $unset[$k] = $k;
226 }
227 }
228 foreach ($unset as $k) {
229 unset($per_opts[$k]);
230 }
231
232 $per_sel = new ilSelectInputGUI(
233 $lng->txt("news_pd_period"),
234 "news_pd_period"
235 );
236 $per_sel->setOptions($per_opts);
237 $per_sel->setValue((string) $per);
238 $form->addItem($per_sel);
239
240 $form->addCommandButton("saveSettings", $lng->txt("save"));
241 $form->addCommandButton("cancelSettings", $lng->txt("cancel"));
242
243 $returnForm = $form->getHTML();
244 }
245
246 if ($enable_private_feed) {
247 if (!$a_private_form) {
248 $a_private_form = $this->initPrivateSettingsForm();
249 }
250 $returnForm .= ($returnForm === "")
251 ? $a_private_form->getHTML()
252 : "<br>" . $a_private_form->getHTML();
253 }
254
255 return $returnForm;
256 }
static _lookupUserPDPeriod(int $a_user_id)
static _lookupDefaultPDPeriod()
This class represents a property form user interface.
This class represents a selection list property in a property form.
ILIAS Setting Class.

References ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\$user, ilNewsItem\_lookupDefaultPDPeriod(), ilNewsItem\_lookupUserPDPeriod(), initPrivateSettingsForm(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ executeCommand()

ilPDNewsBlockGUI::executeCommand ( )

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 81 of file class.ilPDNewsBlockGUI.php.

82 {
83 $cmd = $this->ctrl->getCmd();
84 return $this->$cmd();
85 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getBlockType()

ilPDNewsBlockGUI::getBlockType ( )

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 58 of file class.ilPDNewsBlockGUI.php.

58 : string
59 {
60 return self::$block_type;
61 }

References $block_type.

Referenced by saveSettings().

+ Here is the caller graph for this function:

◆ getHTML()

ilPDNewsBlockGUI::getHTML ( )

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 87 of file class.ilPDNewsBlockGUI.php.

87 : string
88 {
89 $ilCtrl = $this->ctrl;
91 $ilUser = $this->user;
92
93 // @todo: find another solution for this
94 //$this->setFooterInfo($lng->txt("news_block_information"), true);
95
96 $news_set = new ilSetting("news");
97 $enable_internal_rss = $news_set->get("enable_rss_for_internal");
98 $allow_shorter_periods = $news_set->get("allow_shorter_periods");
99 $allow_longer_periods = $news_set->get("allow_longer_periods");
100 $enable_private_feed = $news_set->get("enable_private_feed");
101 // show feed url
102 if ($enable_internal_rss) {
103 // @todo: rss icon html ilRSSButtonGUI::get(ilRSSButtonGUI::ICON_RSS)
104 $this->addBlockCommand(
105 $ilCtrl->getLinkTarget($this, "showFeedUrl"),
106 $lng->txt("news_get_feed_url")
107 );
108 }
109
110 if ($allow_shorter_periods || $allow_longer_periods || $enable_private_feed) {
111 $this->addBlockCommand(
112 $ilCtrl->getLinkTarget($this, "editSettings"),
113 $lng->txt("settings")
114 );
115 }
116
117 $en = "";
118 if ($ilUser->getPref("il_feed_js") === "n") {
119 $en = $this->getJSEnabler();
120 }
121
122 return ilBlockGUI::getHTML() . $en;
123 }
addBlockCommand(string $a_href, string $a_text, string $a_onclick="", ?RoundTrip $modal=null)

References ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\$user, ilBlockGUI\addBlockCommand(), ilBlockGUI\getHTML(), ilNewsForContextBlockGUI\getJSEnabler(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getScreenMode()

static ilPDNewsBlockGUI::getScreenMode ( )
static

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 63 of file class.ilPDNewsBlockGUI.php.

63 : string
64 {
65 global $DIC;
66
67 $cmd = $DIC->ctrl()->getCmd();
68
69 switch ($cmd) {
70 case "showNews":
71 case "showFeedUrl":
72 case "editSettings":
73 case "changeFeedSettings":
74 return IL_SCREEN_CENTER;
75
76 default:
77 return IL_SCREEN_SIDE;
78 }
79 }
const IL_SCREEN_SIDE
const IL_SCREEN_CENTER
global $DIC
Definition: shib_login.php:26

References $DIC, IL_SCREEN_CENTER, and IL_SCREEN_SIDE.

◆ initPrivateSettingsForm()

ilPDNewsBlockGUI::initPrivateSettingsForm ( )
protected

Definition at line 258 of file class.ilPDNewsBlockGUI.php.

259 {
260 $ilCtrl = $this->ctrl;
262 $ilUser = $this->user;
263
264 $feed_form = new ilPropertyFormGUI();
265 $feed_form->setFormAction($ilCtrl->getFormAction($this));
266 $feed_form->setTitle($lng->txt("priv_feed_settings"));
267
268 $feed_form->setTableWidth("100%");
269
270 $enable_private_feed = new ilCheckboxInputGUI($lng->txt("news_enable_private_feed"), "enable_private_feed");
271 $enable_private_feed->setChecked((bool) ilObjUser::_getFeedPass($ilUser->getId()));
272 $feed_form->addItem($enable_private_feed);
273
274 $passwd = new ilPasswordInputGUI($lng->txt("password"), "desired_password");
275 $passwd->setRequired(true);
277 $enable_private_feed->addSubItem($passwd);
278
279 $feed_form->addCommandButton("changeFeedSettings", $lng->txt("save"));
280 $feed_form->addCommandButton("cancelSettings", $lng->txt("cancel"));
281
282 return $feed_form;
283 }
This class represents a checkbox property in a property form.
static _getFeedPass(int $a_user_id)
This class represents a password property in a property form.
static getPasswordRequirementsInfo()
infotext for ilPasswordInputGUI setInfo()

References ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\$user, ilObjUser\_getFeedPass(), ilSecuritySettingsChecker\getPasswordRequirementsInfo(), and ilLanguage\txt().

Referenced by changeFeedSettings(), and editSettings().

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

◆ loadNewsData()

ilPDNewsBlockGUI::loadNewsData ( )
private

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 47 of file class.ilPDNewsBlockGUI.php.

47 : void
48 {
49 $news_period = ilNewsItem::_lookupUserPDPeriod($this->user->getId());
50 $collection = $this->domain->collection()->getNewsForUser(
51 $this->user,
52 new NewsCriteria(period: $news_period, only_public: false),
53 true
54 );
55 $this->initData($collection->groupFiles()->groupForums(false));
56 }
News Criteria DTO for querying news items supports caching, JSON serialization, and validation.
initData(NewsCollection $collection)

References ilNewsForContextBlockGUI\$collection, ilNewsItem\_lookupUserPDPeriod(), ilNewsForContextBlockGUI\initData(), and ILIAS\Repository\user().

Referenced by __construct().

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

◆ saveSettings()

ilPDNewsBlockGUI::saveSettings ( )

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 285 of file class.ilPDNewsBlockGUI.php.

285 : string
286 {
287 $ilCtrl = $this->ctrl;
288 $ilUser = $this->user;
289
290 $news_set = new ilSetting("news");
291
293 $this->getBlockType(),
294 "news_pd_period",
295 $this->std_request->getDashboardPeriod(),
296 $ilUser->getId(),
297 0
298 );
299
300 $this->domain->collection()->invalidateCache($this->user->getId());
301
302 $ilCtrl->returnToParent($this);
303 return "";
304 }
static _write(string $a_type, string $a_setting, string $a_value, int $a_user=0, int $a_block_id=0)
Write setting to database.

References ilBlockGUI\$ctrl, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ showFeedUrl()

ilPDNewsBlockGUI::showFeedUrl ( )

Reimplemented from ilNewsForContextBlockGUI.

Definition at line 126 of file class.ilPDNewsBlockGUI.php.

126 : string
127 {
129 $ilCtrl = $this->ctrl;
130 $ilUser = $this->user;
131
132 $news_set = new ilSetting("news");
133
134 if ($news_set->get("enable_private_feed")) {
135 $tpl = new ilTemplate("tpl.show_priv_feed_url.html", true, true, "components/ILIAS/News");
136
137 $tpl->setVariable("TXT_PRIV_TITLE", $lng->txt("news_get_priv_feed_title"));
138
139 // #14365
140 if (ilObjUser::_getFeedPass($GLOBALS['DIC']['ilUser']->getId())) {
141 $tpl->setVariable("TXT_PRIV_INFO", $lng->txt("news_get_priv_feed_info"));
142 $tpl->setVariable("TXT_PRIV_FEED_URL", $lng->txt("news_feed_url"));
144 "VAL_PRIV_FEED_URL",
145 str_replace("://", "://" . $ilUser->getLogin() . ":-password-@", ILIAS_HTTP_PATH) . "/privfeed.php?client_id=" . rawurlencode(CLIENT_ID) . "&user_id=" . $ilUser->getId() .
146 "&hash=" . ilObjUser::_lookupFeedHash($ilUser->getId(), true)
147 );
149 "VAL_PRIV_FEED_URL_TXT",
150 str_replace("://", "://" . $ilUser->getLogin() . ":-password-@", ILIAS_HTTP_PATH) . "/privfeed.php?client_id=" . rawurlencode(CLIENT_ID) . "&<br />user_id=" . $ilUser->getId() .
151 "&hash=" . ilObjUser::_lookupFeedHash($ilUser->getId(), true)
152 );
153 } else {
154 $tpl->setVariable("TXT_PRIV_INFO", $lng->txt("news_inactive_private_feed_info"));
155 $tpl->setVariable("EDIT_SETTINGS_URL", $ilCtrl->getLinkTarget($this, "editSettings"));
156 $tpl->setVariable("EDIT_SETTINGS_TXT", $lng->txt("news_edit_news_settings"));
157 }
158 } else {
159 $tpl = new ilTemplate("tpl.show_feed_url.html", true, true, "components/ILIAS/News");
160 }
161 $tpl->setVariable("TXT_TITLE", $lng->txt("news_get_feed_title"));
162 $tpl->setVariable("TXT_INFO", $lng->txt("news_get_feed_info"));
163 $tpl->setVariable("TXT_FEED_URL", $lng->txt("news_feed_url"));
165 "VAL_FEED_URL",
166 ILIAS_HTTP_PATH . "/feed.php?client_id=" . rawurlencode(CLIENT_ID) . "&user_id=" . $ilUser->getId() .
167 "&hash=" . ilObjUser::_lookupFeedHash($ilUser->getId(), true)
168 );
170 "VAL_FEED_URL_TXT",
171 ILIAS_HTTP_PATH . "/feed.php?client_id=" . rawurlencode(CLIENT_ID) . "&<br />user_id=" . $ilUser->getId() .
172 "&hash=" . ilObjUser::_lookupFeedHash($ilUser->getId(), true)
173 );
174
175
176 $panel = $this->ui->factory()->panel()->standard(
177 $lng->txt("news_internal_news"),
178 $this->ui->factory()->legacy()->content($tpl->get())
179 );
180
181 return $this->ui->renderer()->render($panel);
182 }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:544
ilTemplate $tpl
static _lookupFeedHash(int $a_user_id, bool $a_create=false)
special template class to simplify handling of ITX/PEAR
get(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
Returns a block with all replacements done.
const CLIENT_ID
Definition: constants.php:41
$GLOBALS["DIC"]
Definition: wac.php:54

References ilBlockGUI\$ctrl, $GLOBALS, ilBlockGUI\$lng, ilBlockGUI\$tpl, ilBlockGUI\$user, ilObjUser\_getFeedPass(), ilObjUser\_lookupFeedHash(), CLIENT_ID, ilTemplate\get(), ILIAS\Survey\Mode\getId(), HTML_Template_IT\setVariable(), ilLanguage\txt(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

Field Documentation

◆ $block_type

string ilPDNewsBlockGUI::$block_type = "pdnews"
static

Definition at line 30 of file class.ilPDNewsBlockGUI.php.

Referenced by getBlockType().


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