ILIAS
eassessment Revision 61809
|
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 | |
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) | |
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) | |
Add a footer text/link. | |
getFooterLinks () | |
Get footer links. | |
clearFooterLinks () | |
Clear footer links. | |
handleDetailLevel () | |
Handle read/write current detail level. | |
setConfigMode ($a_configmode) | |
Handle config status. | |
getConfigMode () | |
Get Config Mode (move blocks). | |
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. | |
fillMoveRow () | |
Fill row for Moving. | |
getAllowMove ($a_direction) | |
setAllowMove ($a_direction, $a_allow=true) | |
fillMoveLink ($a_value, $a_img, $a_txt) |
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") | |
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 = "" |
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 1135 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1043 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl.
ilNewsForContextBlockGUI::disableJS | ( | ) |
ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 913 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
ilNewsForContextBlockGUI::enableJS | ( | ) |
& ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 170 of file class.ilNewsForContextBlockGUI.php.
References $cmd, $ilCtrl, and getEnableEdit().
ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 214 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 812 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, and showViewFooter().
ilNewsForContextBlockGUI::fillRow | ( | $news | ) |
get flat bookmark list for personal desktop
Reimplemented from ilBlockGUI.
Definition at line 379 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, $type, 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 122 of file class.ilNewsForContextBlockGUI.php.
References $block_type.
Referenced by getDynamicReload(), getHTML(), getJSEnabler(), handleView(), hideNotifications(), initSettingsForm(), saveSettings(), and showNotifications().
ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1143 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, and $ilCtrl.
Referenced by ilNewsForContextBlockGUI(), and ilPDNewsBlockGUI\ilPDNewsBlockGUI().
ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1175 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 206 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 233 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $lng, ilBlockSetting\_lookup(), ilBlockGUI\addBlockCommand(), getBlockType(), ilBlockGUI\getData(), getEnableEdit(), ilUtil\getImagePath(), ilBlockGUI\getProperty(), ilBlockGUI\getRepositoryMode(), ilBlockGUI\setFooterInfo(), and ilBlockGUI\setTitle().
Referenced by enableJS(), hideNotifications(), and showNotifications().
ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1196 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, and $ilCtrl.
Referenced by hideNotifications(), ilNewsForContextBlockGUI(), showNews(), and showNotifications().
ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 463 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $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 140 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 333 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $row, ilBlockSetting\_lookup(), and getBlockType().
Referenced by hideNotifications(), ilNewsForContextBlockGUI(), ilPDNewsBlockGUI\ilPDNewsBlockGUI(), and showNotifications().
ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 886 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, 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, $lng, $st_data, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), ilUtil\getImagePath(), getNewsData(), handleView(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setImage(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().
ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 922 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilSetting, $lng, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), getBlockType(), ilUtil\getImagePath(), 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 132 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1053 of file class.ilNewsForContextBlockGUI.php.
References $_POST, ilBlockGUI\$block_id, $ilCtrl, 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 196 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1102 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), and ilUtil\getImagePath().
ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 473 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $displayname, $ilCtrl, $lng, $tpl, ilObject\_exists(), ilObject\_getIcon(), ilObjMediaObject\_getURL(), ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), addCloseCommand(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilUtil\getImagePath(), getNewsData(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, ilUtil\makeClickable(), NEWS_AUDIO, NEWS_PUBLIC, and ilBlockGUI\setData().
ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 862 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
ilNewsForContextBlockGUI::showViewFooter | ( | ) |
Show additional footer for show/hide notifications.
Definition at line 827 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $ilCtrl, $lng, ilBlockGUI\addFooterLink(), ilBlockGUI\clearFooterLinks(), and ilBlockGUI\fillFooterLinks().
Referenced by fillFooter().
ilNewsForContextBlockGUI::subscribeNews | ( | ) |
Subscribe current user from news.
Definition at line 800 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, and ilNewsSubscription\_subscribe().
ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 788 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, 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().