ILIAS
Release_5_0_x_branch Revision 61816
|
BlockGUI class for block NewsForContext. More...
Public Member Functions | |
ilNewsForContextBlockGUI () | |
Constructor. | |
getNewsData () | |
Get news for context. | |
& | executeCommand () |
execute command | |
setEnableEdit ($a_enable_edit=0) | |
Set EnableEdit. | |
getEnableEdit () | |
Get EnableEdit. | |
fillDataSection () | |
Fill data section. | |
getHTML () | |
Get bloch HTML code. | |
handleView () | |
Handles show/hide notification view and removes notifications if hidden. | |
fillRow ($news) | |
get flat bookmark list for personal desktop | |
getOverview () | |
Get overview. | |
showNews () | |
show news | |
makeClickable ($a_str) | |
Make clickable. | |
unsubscribeNews () | |
Unsubscribe current user from news. | |
subscribeNews () | |
Subscribe current user from news. | |
fillFooter () | |
block footer | |
showViewFooter () | |
Show additional footer for show/hide notifications. | |
showNotifications () | |
hideNotifications () | |
editSettings () | |
Show settings screen. | |
initSettingsForm () | |
Init setting form. | |
cancelSettings () | |
Cancel settings. | |
saveSettings () | |
Save settings. | |
showFeedUrl () | |
Show feed URL. | |
addCloseCommand ($a_content_block) | |
getDynamic () | |
getDynamicReload () | |
getJSEnabler () | |
disableJS () | |
enableJS () | |
Public Member Functions inherited from ilBlockGUI | |
ilBlockGUI () | |
Constructor. | |
addHeaderLink ($a_href, $a_text, $status=true) | |
getHeaderLinks () | |
setData ($a_data) | |
Set Data. | |
getData () | |
Get Data. | |
setBigMode ($a_bigmode) | |
Set Big Mode. | |
getBigMode () | |
Get Big Mode. | |
setBlockId ($a_block_id=0) | |
Set Block Id. | |
getBlockId () | |
Get Block Id. | |
setAvailableDetailLevels ($a_max, $a_min=0) | |
Set Available Detail Levels. | |
setCurrentDetailLevel ($a_currentdetaillevel) | |
Set Current Detail Level. | |
setGuiObject (&$a_gui_object) | |
Set GuiObject. | |
getGuiObject () | |
Get GuiObject. | |
getCurrentDetailLevel () | |
Get Current Detail Level. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setImage ($a_image) | |
Set Image. | |
getImage () | |
Get Image. | |
setOffset ($a_offset) | |
Set Offset. | |
getOffset () | |
Get Offset. | |
correctOffset () | |
setLimit ($a_limit) | |
Set Limit. | |
getLimit () | |
Get Limit. | |
setRepositoryMode ($a_repositorymode) | |
Set RepositoryMode. | |
getRepositoryMode () | |
Get RepositoryMode. | |
setFooterInfo ($a_footerinfo, $a_hide_and_icon=false) | |
Set Footer Info. | |
getFooterInfo ($a_hide_and_icon=false) | |
Get Footer Info. | |
setSubtitle ($a_subtitle) | |
Set Subtitle. | |
getSubtitle () | |
Get Subtitle. | |
setRefId ($a_refid) | |
Set Ref Id (only used if isRepositoryObject() is true). | |
getRefId () | |
Get Ref Id (only used if isRepositoryObject() is true). | |
setAdminCommands ($a_admincommands) | |
Set Administration Commmands. | |
getAdminCommands () | |
Get Administration Commmands. | |
setColSpan ($a_colspan) | |
Set Columns Span. | |
getColSpan () | |
Get Columns Span. | |
setEnableDetailRow ($a_enabledetailrow) | |
Set EnableDetailRow. | |
getEnableDetailRow () | |
Get EnableDetailRow. | |
setEnableNumInfo ($a_enablenuminfo) | |
Set Enable Item Number Info. | |
getEnableNumInfo () | |
Get Enable Item Number Info. | |
setProperties ($a_properties) | |
This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. | |
getProperty ($a_property) | |
setProperty ($a_property, $a_value) | |
setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="") | |
Set Row Template Name. | |
getNavParameter () | |
getDetailParameter () | |
getConfigParameter () | |
getMoveParameter () | |
getRowTemplateName () | |
Get Row Template Name. | |
getRowTemplateDir () | |
Get Row Template Directory. | |
addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="") | |
Add Block Command. | |
getBlockCommands () | |
Get Block commands. | |
addHeaderCommand ($a_href, $a_text, $a_as_close=false) | |
Add Header Block Command. | |
getHeaderCommands () | |
Get Header Block commands. | |
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. | |
getFooterLinks () | |
Get footer links. | |
clearFooterLinks () | |
Clear footer links. | |
handleDetailLevel () | |
Handle read/write current detail level. | |
fillHeaderCommands () | |
Fill header commands block. | |
fillHeaderTitleBlock () | |
Fill header title block (title and. | |
setDataSection ($a_content) | |
Call this from overwritten fillDataSection(), if standard row based data is not used. | |
fillPreviousNext () | |
Fill previous/next row. | |
setPreviousNextLinks () | |
Get previous/next linkbar. | |
fillFooterLinks ($a_top=false, $a_numinfo="") | |
Fill footer links. | |
fillDetailRow () | |
Fill Detail Setting Row. |
Static Public Member Functions | |
static | getBlockType () |
Get block type. | |
static | isRepositoryObject () |
Is this a repository object. | |
static | getScreenMode () |
Get Screen Mode for current command. |
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. | |
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::addCloseCommand | ( | $a_content_block | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1195 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1100 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl.
ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1272 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 971 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
Referenced by ilPDNewsBlockGUI\changeFeedSettings().
ilNewsForContextBlockGUI::enableJS | ( | ) |
& ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 178 of file class.ilNewsForContextBlockGUI.php.
References $cmd, $ilCtrl, and getEnableEdit().
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().
ilNewsForContextBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 870 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, and showViewFooter().
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().
|
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().
ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1203 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilCtrl, and $ilUser.
Referenced by ilNewsForContextBlockGUI(), and ilPDNewsBlockGUI\ilPDNewsBlockGUI().
ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1235 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
ilNewsForContextBlockGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Reimplemented from ilBlockGUI.
Definition at line 214 of file class.ilNewsForContextBlockGUI.php.
Referenced by executeCommand(), and getHTML().
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().
ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1256 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\getHTML().
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 hideNotifications(), ilNewsForContextBlockGUI(), 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.
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 ilBlockGUI\$block_id, $ilUser, $row, ilBlockSetting\_lookup(), and getBlockType().
Referenced by hideNotifications(), ilNewsForContextBlockGUI(), ilPDNewsBlockGUI\ilPDNewsBlockGUI(), and showNotifications().
ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 944 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
ilNewsForContextBlockGUI::ilNewsForContextBlockGUI | ( | ) |
Constructor.
Definition at line 26 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $ilCtrl, $ilUser, $lng, $st_data, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), getNewsData(), handleView(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().
ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 980 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilSetting, $ilUser, $lng, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, ilDateTimeInputGUI\setDate(), ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by editSettings(), and saveSettings().
|
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 830 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1110 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 |
Reimplemented from ilBlockGUI.
Definition at line 204 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1163 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $tpl, and ilObject\_lookupTitle().
ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 485 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, ilObject\_exists(), ilObject\_getIcon(), ilObjMediaObject\_getURL(), ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), addCloseCommand(), ilNewsItem\determineNewsContent(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilLinkButton\getInstance(), getNewsData(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, ilWikiPage\lookupTitle(), makeClickable(), NEWS_AUDIO, NEWS_PUBLIC, and ilBlockGUI\setData().
ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 920 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 885 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 858 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_subscribe().
ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 846 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilUser, and ilNewsSubscription\_unsubscribe().
|
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 ilNewsForContextBlockGUI().