ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
BlockGUI class for block NewsForContext. More...
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 Public Member Functions inherited from ilBlockGUI | |
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.
ilNewsForContextBlockGUI: ilColumnGUI ilNewsForContextBlockGUI: ilNewsItemGUI
Definition at line 18 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::__construct | ( | ) |
Constructor.
Definition at line 26 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $ilCtrl, $ilUser, $lng, array, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), getNewsData(), handleView(), ilNewsItem\prepareNewsDataFromCache(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().
ilNewsForContextBlockGUI::addCloseCommand | ( | $a_content_block | ) |
Definition at line 1236 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Definition at line 1133 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl.
ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1313 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilCtrl, and $ilUser.
ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 1003 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
Referenced by ilPDNewsBlockGUI\changeFeedSettings().
ilNewsForContextBlockGUI::enableJS | ( | ) |
Definition at line 1323 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilUser, exit, and getHTML().
ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Definition at line 178 of file class.ilNewsForContextBlockGUI.php.
References $cmd, $html, $ilCtrl, and getEnableEdit().
ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Fill data section.
Definition at line 222 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getCurrentDetailLevel(), ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
ilNewsForContextBlockGUI::fillFooter | ( | ) |
block footer
Definition at line 902 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, and showViewFooter().
ilNewsForContextBlockGUI::fillRow | ( | $news | ) |
get flat bookmark list for personal desktop
Definition at line 391 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilObject\_getIcon(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), array, ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getCurrentDetailLevel(), IL_CAL_DATETIME, and ilUtil\shortenWords().
|
static |
Get block type.
Definition at line 130 of file class.ilNewsForContextBlockGUI.php.
Referenced by getDynamicReload(), getHTML(), getJSEnabler(), handleView(), hideNotifications(), initSettingsForm(), saveSettings(), and showNotifications().
ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1244 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilCtrl, and $ilUser.
Referenced by ilPDNewsBlockGUI\__construct(), and __construct().
ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1276 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
ilNewsForContextBlockGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 214 of file class.ilNewsForContextBlockGUI.php.
Referenced by executeCommand(), and getHTML().
ilNewsForContextBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
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().
ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1297 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\getHTML().
ilNewsForContextBlockGUI::getNewsData | ( | ) |
Get news for context.
Definition at line 84 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, and $ilUser.
Referenced by __construct(), hideNotifications(), showNews(), and showNotifications().
ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 475 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, and ilBlockGUI\getData().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
|
static |
Get Screen Mode for current command.
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 ilBlockGUI\$block_id, $ilUser, $row, ilBlockSetting\_lookup(), data, and getBlockType().
Referenced by ilPDNewsBlockGUI\__construct(), __construct(), hideNotifications(), and showNotifications().
ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 976 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
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(), IL_CAL_DATETIME, ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by editSettings(), and saveSettings().
|
static |
Is this a repository object.
Definition at line 140 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::makeClickable | ( | $a_str | ) |
Make clickable.
Definition at line 862 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Referenced by showNews().
ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Definition at line 1143 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $_POST, ilBlockGUI\$block_id, $ilCtrl, $ilUser, ilBlockSetting\_write(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and initSettingsForm().
ilNewsForContextBlockGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
boolean | $a_enable_edit | Edit mode on/off |
Definition at line 204 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Definition at line 1204 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $title, $tpl, and ilObject\_lookupTitle().
ilNewsForContextBlockGUI::showNews | ( | ) |
show news
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(), array, data, 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().
ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 952 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
ilNewsForContextBlockGUI::showViewFooter | ( | ) |
Show additional footer for show/hide notifications.
Definition at line 917 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $ilCtrl, $ilUser, $lng, ilBlockGUI\addFooterLink(), ilBlockGUI\clearFooterLinks(), and ilBlockGUI\fillFooterLinks().
Referenced by fillFooter().
ilNewsForContextBlockGUI::subscribeNews | ( | ) |
Subscribe current user from news.
Definition at line 890 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_subscribe().
ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 878 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_unsubscribe().
|
static |
Definition at line 20 of file class.ilNewsForContextBlockGUI.php.
|
static |
Definition at line 21 of file class.ilNewsForContextBlockGUI.php.