|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 |
Protected Attributes | |
| $help | |
| $settings | |
| $tabs | |
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 | |
| $tpl | |
| $main_tpl | |
| $user | |
| $ctrl | |
| $access | |
| $lng | |
| $obj_def | |
Additional Inherited Members | |
Protected Member Functions inherited from ilBlockGUI | |
| fillRowColor ($a_placeholder="CSS_ROW") | |
| preloadData (array $data) | |
| Can be overwritten in subclasses. More... | |
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 41 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $DIC, $ilCtrl, $ilUser, ilBlockGUI\$lng, $st_data, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), getNewsData(), handleView(), ilNewsItem\prepareNewsDataFromCache(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), settings(), ilBlockGUI\setTitle(), and user().
Here is the call graph for this function:| ilNewsForContextBlockGUI::addCloseCommand | ( | $a_content_block | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1343 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, and ilBlockGUI\$lng.
Referenced by showNews().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1203 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, and $ilCtrl.
| ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1435 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 1043 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 1446 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilUser, ilBlockGUI\$user, exit, and getHTML().
Here is the call graph for this function:| ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 202 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $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 245 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 922 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, 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 430 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$lng, $type, 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 154 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 1355 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
Referenced by __construct(), and ilPDNewsBlockGUI\__construct().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1384 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$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 237 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 259 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, 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 1413 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$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 102 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
Referenced by __construct(), hideNotifications(), showNews(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 509 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, 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 172 of file class.ilNewsForContextBlockGUI.php.
References $DIC, $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 380 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, $row, ilBlockGUI\$user, ilBlockSetting\_lookup(), data, 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 1013 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, 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 1052 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilSetting, $ilUser, ilBlockGUI\$lng, $settings, $tabs, ilBlockGUI\$user, 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 164 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::makeClickable | ( | $a_str | ) |
Make clickable.
return
Definition at line 881 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Here is the call graph for this function:| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1213 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $_POST, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, 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 227 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1300 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, $title, ilBlockGUI\$tpl, ilBlockGUI\$user, ilObjUser\_lookupFeedHash(), ilObject\_lookupTitle(), and sprintf.
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 521 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$access, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$tpl, $url, ilBlockGUI\$user, ilObject\_exists(), ilObject\_getIcon(), ilObjForumAccess\_getThreadForPosting(), ilObjMediaObject\_getURL(), ilBlockSetting\_lookup(), ilNewsItem\_lookupContextObjId(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), addCloseCommand(), data, ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilLinkButton\getInstance(), getNewsData(), ilBlockGUI\getProperty(), ilNewsRendererFactory\getRenderer(), IL_CAL_DATETIME, ilWikiPage\lookupTitle(), ilWikiUtil\makeUrlTitle(), NEWS_AUDIO, NEWS_PUBLIC, and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 986 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, 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 938 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, 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 909 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, and ilNewsSubscription\_subscribe().
Here is the call graph for this function:| ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 896 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, and ilNewsSubscription\_unsubscribe().
Here is the call graph for this function:
|
static |
Definition at line 35 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType().
|
protected |
Definition at line 23 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 28 of file class.ilNewsForContextBlockGUI.php.
Referenced by ilPDNewsBlockGUI\editSettings(), initSettingsForm(), and ilPDNewsBlockGUI\showFeedUrl().
|
static |
Definition at line 36 of file class.ilNewsForContextBlockGUI.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilNewsForContextBlockGUI.php.
Referenced by initSettingsForm().