|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
BlockGUI class for block NewsForContext. More...
Inheritance diagram for ilNewsForContextBlockGUI:
Collaboration diagram for ilNewsForContextBlockGUI:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getNewsData () | |
| Get news for context. More... | |
| executeCommand () | |
| execute command More... | |
| setEnableEdit ($a_enable_edit=0) | |
| Set EnableEdit. More... | |
| getEnableEdit () | |
| Get EnableEdit. More... | |
| fillDataSection () | |
| Fill data section. More... | |
| getHTML () | |
| Get bloch HTML code. More... | |
| handleView () | |
| Handles show/hide notification view and removes notifications if hidden. More... | |
| fillRow ($news) | |
| get flat bookmark list for personal desktop More... | |
| getOverview () | |
| Get overview. More... | |
| showNews () | |
| show news More... | |
| makeClickable ($a_str) | |
| Make clickable. More... | |
| unsubscribeNews () | |
| Unsubscribe current user from news. More... | |
| subscribeNews () | |
| Subscribe current user from news. More... | |
| fillFooter () | |
| block footer More... | |
| showViewFooter () | |
| Show additional footer for show/hide notifications. More... | |
| showNotifications () | |
| hideNotifications () | |
| editSettings () | |
| Show settings screen. More... | |
| initSettingsForm () | |
| Init setting form. More... | |
| cancelSettings () | |
| Cancel settings. More... | |
| saveSettings () | |
| Save settings. More... | |
| showFeedUrl () | |
| Show feed URL. More... | |
| addCloseCommand ($a_content_block) | |
| getDynamic () | |
| getDynamicReload () | |
| getJSEnabler () | |
| disableJS () | |
| enableJS () | |
Public Member Functions inherited from ilBlockGUI | |
| __construct () | |
| Constructor. More... | |
| addHeaderLink ($a_href, $a_text, $status=true) | |
| getHeaderLinks () | |
| setData ($a_data) | |
| Set Data. More... | |
| getData () | |
| Get Data. More... | |
| setBigMode ($a_bigmode) | |
| Set Big Mode. More... | |
| getBigMode () | |
| Get Big Mode. More... | |
| setBlockId ($a_block_id=0) | |
| Set Block Id. More... | |
| getBlockId () | |
| Get Block Id. More... | |
| setAvailableDetailLevels ($a_max, $a_min=0) | |
| Set Available Detail Levels. More... | |
| setCurrentDetailLevel ($a_currentdetaillevel) | |
| Set Current Detail Level. More... | |
| setGuiObject (&$a_gui_object) | |
| Set GuiObject. More... | |
| getGuiObject () | |
| Get GuiObject. More... | |
| getCurrentDetailLevel () | |
| Get Current Detail Level. More... | |
| setTitle ($a_title) | |
| Set Title. More... | |
| getTitle () | |
| Get Title. More... | |
| setImage ($a_image) | |
| Set Image. More... | |
| getImage () | |
| Get Image. More... | |
| setOffset ($a_offset) | |
| Set Offset. More... | |
| getOffset () | |
| Get Offset. More... | |
| correctOffset () | |
| setLimit ($a_limit) | |
| Set Limit. More... | |
| getLimit () | |
| Get Limit. More... | |
| setEnableEdit ($a_enableedit) | |
| Set EnableEdit. More... | |
| getEnableEdit () | |
| Get EnableEdit. More... | |
| setRepositoryMode ($a_repositorymode) | |
| Set RepositoryMode. More... | |
| getRepositoryMode () | |
| Get RepositoryMode. More... | |
| setFooterInfo ($a_footerinfo, $a_hide_and_icon=false) | |
| Set Footer Info. More... | |
| getFooterInfo ($a_hide_and_icon=false) | |
| Get Footer Info. More... | |
| setSubtitle ($a_subtitle) | |
| Set Subtitle. More... | |
| getSubtitle () | |
| Get Subtitle. More... | |
| setRefId ($a_refid) | |
| Set Ref Id (only used if isRepositoryObject() is true). More... | |
| getRefId () | |
| Get Ref Id (only used if isRepositoryObject() is true). More... | |
| setAdminCommands ($a_admincommands) | |
| Set Administration Commmands. More... | |
| getAdminCommands () | |
| Get Administration Commmands. More... | |
| setColSpan ($a_colspan) | |
| Set Columns Span. More... | |
| getColSpan () | |
| Get Columns Span. More... | |
| setEnableDetailRow ($a_enabledetailrow) | |
| Set EnableDetailRow. More... | |
| getEnableDetailRow () | |
| Get EnableDetailRow. More... | |
| setEnableNumInfo ($a_enablenuminfo) | |
| Set Enable Item Number Info. More... | |
| getEnableNumInfo () | |
| Get Enable Item Number Info. More... | |
| setProperties ($a_properties) | |
| This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More... | |
| getProperty ($a_property) | |
| setProperty ($a_property, $a_value) | |
| setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="") | |
| Set Row Template Name. More... | |
| getNavParameter () | |
| getDetailParameter () | |
| getConfigParameter () | |
| getMoveParameter () | |
| getRowTemplateName () | |
| Get Row Template Name. More... | |
| getRowTemplateDir () | |
| Get Row Template Directory. More... | |
| addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="") | |
| Add Block Command. More... | |
| getBlockCommands () | |
| Get Block commands. More... | |
| addHeaderCommand ($a_href, $a_text, $a_as_close=false) | |
| Add Header Block Command. More... | |
| getHeaderCommands () | |
| Get Header Block commands. More... | |
| addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false, $a_checked=false) | |
| Add a footer text/link. More... | |
| getFooterLinks () | |
| Get footer links. More... | |
| clearFooterLinks () | |
| Clear footer links. More... | |
| handleDetailLevel () | |
| Handle read/write current detail level. More... | |
| getHTML () | |
| Handle config status. More... | |
| fillHeaderCommands () | |
| Fill header commands block. More... | |
| fillHeaderTitleBlock () | |
| Fill header title block (title and. More... | |
| setDataSection ($a_content) | |
| Call this from overwritten fillDataSection(), if standard row based data is not used. More... | |
| fillDataSection () | |
| Standard implementation for row based data. More... | |
| fillRow ($a_set) | |
| fillFooter () | |
| fillPreviousNext () | |
| Fill previous/next row. More... | |
| setPreviousNextLinks () | |
| Get previous/next linkbar. More... | |
| fillFooterLinks ($a_top=false, $a_numinfo="") | |
| Fill footer links. More... | |
| fillDetailRow () | |
| Fill Detail Setting Row. More... | |
Static Public Member Functions | |
| static | getBlockType () |
| Get block type. More... | |
| static | isRepositoryObject () |
| Is this a repository object. More... | |
| static | getScreenMode () |
| Get Screen Mode for current command. More... | |
| static | getBlockType () |
| static | isRepositoryObject () |
| static | getScreenMode () |
| Get Screen Mode for current command. More... | |
Static Public Attributes | |
| static | $block_type = "news" |
| static | $st_data |
Additional Inherited Members | |
Protected Member Functions inherited from ilBlockGUI | |
| fillRowColor ($a_placeholder="CSS_ROW") | |
| preloadData (array $data) | |
| Can be overwritten in subclasses. More... | |
Protected Attributes inherited from ilBlockGUI | |
| $data = array() | |
| $colspan = 1 | |
| $enablenuminfo = true | |
| $detail_min = 0 | |
| $detail_max = 0 | |
| $bigmode = false | |
| $footer_links = array() | |
| $block_id = 0 | |
| $header_commands = array() | |
| $allow_moving = true | |
| $move = array("left" => false, "right" => false, "up" => false, "down" => false) | |
| $enabledetailrow = true | |
| $header_links = array() | |
| $footerinfo = false | |
| $footerinfo_icon = false | |
| $block_commands = array() | |
| $max_count = false | |
| $close_command = false | |
| $image = false | |
| $property = false | |
| $nav_value = "" | |
| $css_row = "" | |
| $dropdown | |
BlockGUI class for block NewsForContext.
@ilCtrl_IsCalledBy ilNewsForContextBlockGUI: ilColumnGUI @ilCtrl_Calls ilNewsForContextBlockGUI: ilNewsItemGUI
Definition at line 18 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::__construct | ( | ) |
Constructor.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 26 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $ilCtrl, $ilUser, $lng, $st_data, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), getNewsData(), handleView(), ilNewsItem\prepareNewsDataFromCache(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().
Here is the call graph for this function:| ilNewsForContextBlockGUI::addCloseCommand | ( | $a_content_block | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1236 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1133 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl.
| ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1313 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 1003 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
Referenced by ilPDNewsBlockGUI\changeFeedSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::enableJS | ( | ) |
Definition at line 1323 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilUser, exit, and getHTML().
Here is the call graph for this function:| ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 178 of file class.ilNewsForContextBlockGUI.php.
References $cmd, $html, $ilCtrl, and getEnableEdit().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 222 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getCurrentDetailLevel(), ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 902 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, and showViewFooter().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillRow | ( | $news | ) |
get flat bookmark list for personal desktop
Reimplemented from ilBlockGUI.
Definition at line 391 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilObject\_getIcon(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getCurrentDetailLevel(), IL_CAL_DATETIME, and ilUtil\shortenWords().
Here is the call graph for this function:
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 130 of file class.ilNewsForContextBlockGUI.php.
References $block_type.
Referenced by getDynamicReload(), getHTML(), getJSEnabler(), handleView(), hideNotifications(), initSettingsForm(), saveSettings(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1244 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilCtrl, and $ilUser.
Referenced by __construct(), and ilPDNewsBlockGUI\__construct().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1276 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Reimplemented from ilBlockGUI.
Definition at line 214 of file class.ilNewsForContextBlockGUI.php.
Referenced by executeCommand(), and getHTML().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 241 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, ilBlockSetting\_lookup(), ilBlockGUI\addBlockCommand(), ilRSSButtonGUI\get(), getBlockType(), ilBlockGUI\getData(), getEnableEdit(), ilBlockGUI\getProperty(), ilBlockGUI\getRepositoryMode(), ilRSSButtonGUI\ICON_RSS, ilBlockGUI\setFooterInfo(), and ilBlockGUI\setTitle().
Referenced by enableJS(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1297 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getNewsData | ( | ) |
Get news for context.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 84 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, and $ilUser.
Referenced by __construct(), hideNotifications(), showNews(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 475 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, and ilBlockGUI\getData().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get Screen Mode for current command.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 148 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, IL_SCREEN_CENTER, IL_SCREEN_FULL, and IL_SCREEN_SIDE.
| ilNewsForContextBlockGUI::handleView | ( | ) |
Handles show/hide notification view and removes notifications if hidden.
Definition at line 345 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, $row, ilBlockSetting\_lookup(), and getBlockType().
Referenced by __construct(), ilPDNewsBlockGUI\__construct(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 976 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 1012 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilSetting, $ilUser, $lng, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), getBlockType(), ilBlockGUI\getProperty(), and IL_CAL_DATETIME.
Referenced by editSettings(), and saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Is this a repository object.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 140 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::makeClickable | ( | $a_str | ) |
Make clickable.
return
Definition at line 862 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Referenced by showNews().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1143 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, ilBlockSetting\_write(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and initSettingsForm().
Here is the call graph for this function:| ilNewsForContextBlockGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
| boolean | $a_enable_edit | Edit mode on/off |
Reimplemented from ilBlockGUI.
Definition at line 204 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1204 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $title, $tpl, ilObject\_lookupTitle(), and sprintf.
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 485 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, $url, ilObject\_exists(), ilObject\_getIcon(), ilObjMediaObject\_getURL(), ilBlockSetting\_lookup(), ilNewsItem\_lookupContextObjId(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), addCloseCommand(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilLinkButton\getInstance(), getNewsData(), ilBlockGUI\getProperty(), ilNewsRendererFactory\getRenderer(), IL_CAL_DATETIME, ilWikiPage\lookupTitle(), makeClickable(), NEWS_AUDIO, NEWS_PUBLIC, and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 952 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showViewFooter | ( | ) |
Show additional footer for show/hide notifications.
Definition at line 917 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilBlockGUI\addFooterLink(), ilBlockGUI\clearFooterLinks(), and ilBlockGUI\fillFooterLinks().
Referenced by fillFooter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::subscribeNews | ( | ) |
Subscribe current user from news.
Definition at line 890 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_subscribe().
Here is the call graph for this function:| ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 878 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_unsubscribe().
Here is the call graph for this function:
|
static |
Definition at line 20 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType().
|
static |
Definition at line 21 of file class.ilNewsForContextBlockGUI.php.
Referenced by __construct().